OptionaldataThe actual payload. Only to be filled in if the request was successful.
OptionaldetailsBetter description of the error and possibly also which action to take. Only to be filled out if success is false.
OptionalerrorAn machine readable error code that the client should be able to interpret. Only to be filled out if success is false.
OptionalhttpThe HTTP status code of the request. (e.g. 200 or 404)
OptionalmessageThe localized error message. Only to be filled out if success is false.
True if the request was successful, false if something went wrong (errorCode and message should be filled in then).
A response that is sent back to an AJAX call.