Error out with a bad gateway error (502) response.
Error out with a bad gateway error (502) response.
Note: Only use this within a Rest Action, and not a general action.
Error out with a BadRequest (400) response.
Error out with a BadRequest (400) response.
Note: Only use this within a Rest Action, and not a general action.
Error out with a conflict (409) response.
Error out with a conflict (409) response.
Note: Only use this within a Rest Action, and not a general action.
Error out with an Forbidden (403) response.
Error out with an Forbidden (403) response.
Note: Only use this within a Rest Action, and not a general action.
Error out with a gateway timeout (504) response.
Error out with a gateway timeout (504) response.
Note: Only use this within a Rest Action, and not a general action.
Error out with an Gone (410) response.
Error out with an Gone (410) response.
Note: Only use this within a Rest Action, and not a general action.
Error out with an internal server error (500) response.
Error out with an internal server error (500) response.
Note: Only use this within a Rest Action, and not a general action.
Error out with an Not Found (404) response.
Error out with an Not Found (404) response.
Note: Only use this within a Rest Action, and not a general action.
Error out with a precondition failed (412) response.
Error out with a precondition failed (412) response.
Note: Only use this within a Rest Action, and not a general action.
Error out with a service unavailable (503) response.
Error out with a service unavailable (503) response.
Note: Only use this within a Rest Action, and not a general action.
Error out with an Unauthorized (401) response.
Error out with an Unauthorized (401) response.
Note: Only use this within a Rest Action, and not a general action.
Generate your own HTTP 4XX or 5XX response, specifying your own HTTP code.
Error responses. Note: these error responses work by throwing special exceptions that are caught by the framework. They are not designed to work outside the framework.