Defines a set of response status codes to indicate whether a request has been successfully completed.

See

  • throwOnErrorStatus
  • MessageClient.request$
  • IntentClient.request$

Enumeration Members

Enumeration Members

BAD_REQUEST: 400

The receiver could not understand the request due to invalid syntax.

In request-reply communication, setting this status code will error the requestor's Observable.

ERROR: 500

The receiver encountered an internal error. Optionally, set the error as message payload.

In request-reply communication, setting this status code will error the requestor's Observable.

NOT_FOUND: 404

The receiver could not find the requested resource.

In request-reply communication, setting this status code will error the requestor's Observable.

OK: 200

The request has succeeded.

TERMINAL: 250

The request has succeeded. No further response to be expected.

In request-reply communication, setting this status code will complete the requestor's Observable after emitted the reply. The reply is only emitted if not undefined.

Generated using TypeDoc