Skip to content

StatusCode

Gets the HTTP status code of the response.

Allowed Values

  • OK
  • Moved
  • NotFound
  • Forbidden
  • MethodNotAllowed
  • RequestEntityTooLarge
  • RequestUriTooLong
  • InternalServerError
  • ServiceUnavailable
  • GatewayTimeout

Type

( "OK" | "Moved" | "NotFound" | "Forbidden" | "MethodNotAllowed" | "RequestEntityTooLarge" | "RequestUriTooLong" | "InternalServerError" | "ServiceUnavailable" | "GatewayTimeout" )

Declaration

1
 ( `"OK"` | `"Moved"` | `"NotFound"` | `"Forbidden"` | `"MethodNotAllowed"` | `"RequestEntityTooLarge"` | `"RequestUriTooLong"` | `"InternalServerError"` | `"ServiceUnavailable"` | `"GatewayTimeout"` ) myRestResponse.StatusCode