'Build an error response with the given status code and developer_message'

def make_error_response(self, status_code, developer_message, error_code=None):

    error_data = {'developer_message': developer_message}
    if (error_code is not None):
        error_data['error_code'] = error_code
    return Response(error_data, status=status_code)
