def response(code, description):
    """
    Decorates a function with a set of possible HTTP response codes that
    it can return.

    Args:
        code: The HTTP code (i.e 404)
        description: A human readable description
    """
    def response_inner(function):
        if not hasattr(function, 'doc_responses'):
            setattr(function, 'doc_responses', [])
        function.doc_responses.append((code, description))
        return function
    return response_inner