wwRestProcess::ErrorResponse

Creates an error response formatted into the proper output format depending on the Accept header of the request. Defaults to JSON, if no Accept header is provided.

o.ErrorResponse(lcMessage, lcStatus)

Return Value

Returns JSON error structure by default (per wwJsonService) into the Response.

Format:
{ "isCallbackError": true, message: "error message here" }

Parameters

lcMessage
The error message to return in the response structure.

lcStatus
HTTP status code and description (ie. "401 Access Denied")


See also:

Class wwRestProcess

© West Wind Technologies, 1996-2024 • Updated: 01/04/16
Comment or report problem with topic