Impoved on_error_callback to grab the exception. Added the parameter attach_to_request to attach the JSON into the request.REQUEST_ATTR