Return Error

Throw an error and end the flow.

Input

Field Definition Type Required
statusCode

The HTTP status code that is returned. A code indicates what type of error has occurred. For example:

  • A 201 Created status code indicates success where a new resource was created.
  • A 403 Forbidden error indicates that the HTTP request was not processed because the necessary permissions were missing.

For a full list of possible status codes, see HTTP status codes.

Number FALSE
message Content of the error message. String TRUE

Output

No output fields.

Related topics

Functions in Workflows

About the elements of Okta Workflows