HTTP status codes.
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
integer, | public, | parameter | :: | HTTP_NONE | = | 0 | |
integer, | public, | parameter | :: | HTTP_OK | = | 200 | |
integer, | public, | parameter | :: | HTTP_CREATED | = | 201 | |
integer, | public, | parameter | :: | HTTP_ACCEPTED | = | 202 | |
integer, | public, | parameter | :: | HTTP_NON_AUTHORITATIVE_INFORMATION | = | 203 | |
integer, | public, | parameter | :: | HTTP_NO_CONTENT | = | 204 | |
integer, | public, | parameter | :: | HTTP_RESET_CONTENT | = | 205 | |
integer, | public, | parameter | :: | HTTP_PARTIAL_CONTENT | = | 206 | |
integer, | public, | parameter | :: | HTTP_MULTIPLE_CHOICES | = | 300 | |
integer, | public, | parameter | :: | HTTP_MOVED_PERMANENTLY | = | 301 | |
integer, | public, | parameter | :: | HTTP_FOUND | = | 302 | |
integer, | public, | parameter | :: | HTTP_SEE_OTHER | = | 303 | |
integer, | public, | parameter | :: | HTTP_NOT_MODIFIED | = | 304 | |
integer, | public, | parameter | :: | HTTP_USE_PROXY | = | 305 | |
integer, | public, | parameter | :: | HTTP_SWITCH_PROXY | = | 306 | |
integer, | public, | parameter | :: | HTTP_TEMPORARY_REDIRECT | = | 307 | |
integer, | public, | parameter | :: | HTTP_PERMANENT_REDIRECT | = | 308 | |
integer, | public, | parameter | :: | HTTP_BAD_REQUEST | = | 400 | |
integer, | public, | parameter | :: | HTTP_UNAUTHORIZED | = | 401 | |
integer, | public, | parameter | :: | HTTP_PAYMENT_REQUIRED | = | 402 | |
integer, | public, | parameter | :: | HTTP_FORBIDDEN | = | 403 | |
integer, | public, | parameter | :: | HTTP_NOT_FOUND | = | 404 | |
integer, | public, | parameter | :: | HTTP_METHOD_NOT_ALLOWED | = | 405 | |
integer, | public, | parameter | :: | HTTP_NOT_ACCEPTABLE | = | 406 | |
integer, | public, | parameter | :: | HTTP_PROXY_AUTHENTICATION_REQUIRED | = | 407 | |
integer, | public, | parameter | :: | HTTP_REQUEST_TIMEOUT | = | 408 | |
integer, | public, | parameter | :: | HTTP_CONFLICT | = | 409 | |
integer, | public, | parameter | :: | HTTP_GONE | = | 410 | |
integer, | public, | parameter | :: | HTTP_LENGTH_REQUIRED | = | 411 | |
integer, | public, | parameter | :: | HTTP_UNSUPPORTED_MEDIA_TYPE | = | 415 | |
integer, | public, | parameter | :: | HTTP_INTERNAL_SERVER_ERROR | = | 500 | |
integer, | public, | parameter | :: | HTTP_NOT_IMPLEMENTED | = | 501 | |
integer, | public, | parameter | :: | HTTP_BAD_GATEWAY | = | 502 | |
integer, | public, | parameter | :: | HTTP_SERVICE_UNAVAILABLE | = | 503 |
Returns allocatable string of HTTP status. Returns an empty string if the passed status is unknown.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | status |
HTTP code. |
Status string.