HTTP status codes.
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
integer, | public, | parameter | :: | HTTP_OK | = | 200 | |
integer, | public, | parameter | :: | HTTP_CREATED | = | 201 | |
integer, | public, | parameter | :: | HTTP_ACCEPTED | = | 202 | |
integer, | public, | parameter | :: | HTTP_NO_CONTENT | = | 204 | |
integer, | public, | parameter | :: | HTTP_RESET_CONTENT | = | 205 | |
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) | :: | http_status |
HTTP code. |
Status string.