Module: SFML::HttpStatus
- Defined in:
- ext/network/network_enums.c,
ext/network/network_enums.c
Overview
Status codes returned by an HttpResponse, mirroring standard HTTP status codes with a few SFML-specific additions (1000+) for local connection failures.
Constant Summary collapse
- OK =
most common code, returned when the operation was successful.
200- CREATED =
the resource has successfully been created.
201- ACCEPTED =
the request has been accepted, but will be processed later by the server.
202- NO_CONTENT =
the server didn't send any data in return.
204- RESET_CONTENT =
the server informs the client that it should clear the view (form) that caused the request to be sent.
205- PARTIAL_CONTENT =
the server has sent a part of the resource, as a response to a partial GET request.
206- MULTIPLE_CHOICES =
the requested page can be accessed from several locations.
300- MOVED_PERMANENTLY =
the requested page has permanently moved to a new location.
301- MOVED_TEMPORARILY =
the requested page has temporarily moved to a new location.
302- NOT_MODIFIED =
for conditional requests, the requested page hasn't changed and doesn't need to be refreshed.
304- BAD_REQUEST =
the server couldn't understand the request (syntax error).
400- UNAUTHORIZED =
the requested page needs an authentication to be accessed.
401- FORBIDDEN =
the requested page cannot be accessed at all, even with authentication.
403- NOT_FOUND =
the requested page doesn't exist.
404- RANGE_NOT_SATISFIABLE =
the server can't satisfy the partial GET request (with a "Range" header field).
407- INTERNAL_SERVER_ERROR =
the server encountered an unexpected error.
500- NOT_IMPLEMENTED =
the server doesn't implement this request method.
501- BAD_GATEWAY =
the gateway server has received an error from the source server.
502- SERVICE_NOT_AVAILABLE =
the service has not been found.
503- GATEWAY_TIMEOUT =
the gateway server didn't receive a response from the source server in a proper delay.
504- VERSION_NOT_SUPPORTED =
the server doesn't support the version of the HTTP protocol used.
505- INVALID_RESPONSE =
the response is not a valid HTTP one.
1000 (SFML-specific)
- CONNECTION_FAILED =
the connection with the server failed.
1001 (SFML-specific)