dm_http Module

HTTP status codes.


Used by

  • module~~dm_http~~UsedByGraph module~dm_http dm_http module~dm_cgi dm_cgi module~dm_cgi->module~dm_http module~dm_rpc dm_rpc module~dm_rpc->module~dm_http module~dmpack dmpack module~dmpack->module~dm_http module~dmpack->module~dm_cgi module~dmpack->module~dm_rpc module~dm_cgi_router dm_cgi_router module~dmpack->module~dm_cgi_router module~dm_fcgi dm_fcgi module~dmpack->module~dm_fcgi proc~dm_cgi_router_dispatch dm_cgi_router_dispatch proc~dm_cgi_router_dispatch->module~dm_http proc~dm_fcgi_header dm_fcgi_header proc~dm_fcgi_header->module~dm_http module~dm_cgi_router->module~dm_cgi module~dm_fcgi->module~dm_cgi proc~dm_html_cgi_env dm_html_cgi_env proc~dm_html_cgi_env->module~dm_cgi

Variables

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

Functions

public pure function dm_http_status_string(http_status) result(str)

Returns allocatable string of HTTP status. Returns an empty string if the passed status is unknown.

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: http_status

HTTP code.

Return Value character(len=:), allocatable

Status string.