'Create and return a Response.
Arguments:
message (string): The message to put in the developer_message
and user_message fields.
status: The status of the response. Default is HTTP_400_BAD_REQUEST.'

def error_response(self, developer_message, user_message=None, error_status=status.HTTP_400_BAD_REQUEST):

    if (not user_message):
        user_message = developer_message
    return Response({'developer_message': developer_message, 'user_message': _(user_message)}, status=error_status)
