pyca/ui/jsonapi.py
def make_error_response(error, status=500):
    ''' Return a response with a jsonapi error object
    '''
    content = {
        'errors': [{
            'status': status,
            'title': error
        }]
    }
    return make_response(jsonify(content), status)
def make_error_response(error, status=500):
    ''' Return a response with a jsonapi error object
    '''
    content = {
        'errors': [{
            'status': status,
            'title': error
        }]
    }
    return make_response(jsonify(content), status)
def make_error_response ( error , status = 500 ) : content = { 'errors' : [ { 'status' : status , 'title' : error } ] } return make_response ( jsonify ( content ) , status )
Return a response with a jsonapi error object
Return a response with a jsonapi error object