Optional
dataThe actual payload. Only to be filled in if the request was successful.
Optional
detailsBetter description of the error and possibly also which action to take. Only to be filled out if success is false.
Optional
errorAn machine readable error code that the client should be able to interpret. Only to be filled out if success is false.
Optional
httpThe HTTP status code of the request. (e.g. 200 or 404)
Optional
messageThe 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.