ServerErrors Module

10.5 Server Error 5xx Response status codes beginning with the digit "5" indicate cases in which the server is aware that it has erred or is incapable of performing the request. Except when responding to a HEAD request, the server SHOULD include an entity containing an explanation of the error situation, and whether it is a temporary or permanent condition. User agents SHOULD display any included entity to the user. These response codes are applicable to any request method.

Functions and values

Function or value Description

BAD_GATEWAY body

Full Usage: BAD_GATEWAY body

Parameters:
    body : string

Returns: WebPart

An upstream server that suave communicated with did not respond in a timely fashion

body : string
Returns: WebPart

GATEWAY_TIMEOUT body

Full Usage: GATEWAY_TIMEOUT body

Parameters:
    body : string

Returns: WebPart

An upstream server that suave communicated with did not respond in a timely fashion

body : string
Returns: WebPart

INTERNAL_ERROR body

Full Usage: INTERNAL_ERROR body

Parameters:
    body : string

Returns: WebPart

500

The server encountered an unexpected condition which prevented it from fulfilling the request.

body : string
Returns: WebPart

INVALID_HTTP_VERSION

Full Usage: INVALID_HTTP_VERSION

Returns: WebPart

Only used internally in Suave.

Returns: WebPart

NOT_IMPLEMENTED body

Full Usage: NOT_IMPLEMENTED body

Parameters:
    body : string

Returns: WebPart

501

The server does not recognize the request method and can not support it for any resource.

body : string
Returns: WebPart

SERVICE_UNAVAILABLE body

Full Usage: SERVICE_UNAVAILABLE body

Parameters:
    body : string

Returns: WebPart

The service is currently under too much load and cannot service the request

body : string
Returns: WebPart

bad_gateway bytes

Full Usage: bad_gateway bytes

Parameters:
    bytes : byte[]

Returns: WebPart

An upstream server that suave communicated with did not respond in a timely fashion

bytes : byte[]
Returns: WebPart

gateway_timeout bytes

Full Usage: gateway_timeout bytes

Parameters:
    bytes : byte[]

Returns: WebPart

An upstream server that suave communicated with did not respond in a timely fashion

bytes : byte[]
Returns: WebPart

internal_error bytes

Full Usage: internal_error bytes

Parameters:
    bytes : byte[]

Returns: WebPart

500

The server encountered an unexpected condition which prevented it from fulfilling the request.

bytes : byte[]
Returns: WebPart

invalid_http_version bytes

Full Usage: invalid_http_version bytes

Parameters:
    bytes : byte[]

Returns: WebPart

Only used internally in Suave.

bytes : byte[]
Returns: WebPart

not_implemented bytes

Full Usage: not_implemented bytes

Parameters:
    bytes : byte[]

Returns: WebPart

501

The server does not recognize the request method and can not support it for any resource.

bytes : byte[]
Returns: WebPart

service_unavailable bytes

Full Usage: service_unavailable bytes

Parameters:
    bytes : byte[]

Returns: WebPart

The service is currently under too much load and cannot service the request

bytes : byte[]
Returns: WebPart