Sap v0.1.0 Sap.Combinators.ServerError View Source

Error responses caused by server behavior

Link to this section Summary

Functions

This error response means that the server, while working as a gateway to get a response needed to handle the request, got an invalid response

This error response is given when the server is acting as a gateway and cannot get a response in time

The HTTP version used in the request is not supported by the server

The server has encountered a situation it doesn’t know how to handle

The 511 status code indicates that the client needs to authenticate to gain network access

The request method is not supported by the server and cannot be handled. The only methods that servers are required to support (and therefore that must not return this code) are GET and HEAD

The server is not ready to handle the request. Common causes are a server that is down for maintenance or that is overloaded. Note that together with this response, a user-friendly page explaining the problem should be sent. This responses should be used for temporary conditions and the Retry-After: HTTP header should, if possible, contain the estimated time before the recovery of the service. The webmaster must also take care about the caching-related headers that are sent along with this response, as these temporary condition responses should usually not be cached

Link to this section Functions

Link to this function bad_gateway(content \\ "") View Source
bad_gateway(String.t()) :: Sap.Combinators.combinator()

This error response means that the server, while working as a gateway to get a response needed to handle the request, got an invalid response.

Link to this function gateway_timeout(content \\ "") View Source
gateway_timeout(String.t()) :: Sap.Combinators.combinator()

This error response is given when the server is acting as a gateway and cannot get a response in time.

Link to this function http_version_not_supported(content \\ "") View Source
http_version_not_supported(String.t()) :: Sap.Combinators.combinator()

The HTTP version used in the request is not supported by the server.

Link to this function internal_server_error(content \\ "") View Source
internal_server_error(String.t()) :: Sap.Combinators.combinator()

The server has encountered a situation it doesn’t know how to handle.

Link to this function network_authentication_required(content \\ "") View Source
network_authentication_required(String.t()) :: Sap.Combinators.combinator()

The 511 status code indicates that the client needs to authenticate to gain network access.

Link to this function not_implemented(content \\ "") View Source
not_implemented(String.t()) :: Sap.Combinators.combinator()

The request method is not supported by the server and cannot be handled. The only methods that servers are required to support (and therefore that must not return this code) are GET and HEAD.

Link to this function service_unavailable(content \\ "") View Source
service_unavailable(String.t()) :: Sap.Combinators.combinator()

The server is not ready to handle the request. Common causes are a server that is down for maintenance or that is overloaded. Note that together with this response, a user-friendly page explaining the problem should be sent. This responses should be used for temporary conditions and the Retry-After: HTTP header should, if possible, contain the estimated time before the recovery of the service. The webmaster must also take care about the caching-related headers that are sent along with this response, as these temporary condition responses should usually not be cached.