httpStatusCode
Type: Integer
The httpStatusCode property of the JadeRestService class enables you to return an HTTP status code error to the client. The property is initialized to 200 (OK) before the REST method is called. If the property is set to a value other than 0 or 200, an HTML error response is generated to report the HTTP error to the client. Any data returned by the called method is also passed as the body of the message.
The application can use this status or the returned null values to indicate that the objects could not found.
From Jade 2025.0.01, if the property is set to any value in the 1xx range (Informational), 204 (No Content), or 304 (Not Modified), no message body is sent with the response. This is to comply with RFC 7230 section 3.3 (https://www.rfc-editor.org/rfc/rfc7230#section-3.3), which mandates:
All 1xx (Informational), 204 (No Content), and 304 (Not Modified) responses do not include a message body.
