/*! Standard response for successful HTTP requests. */ok=200,
/*! The request has been fulfilled, resulting in the creation of a new resource. */created=201,
/*! The request has been accepted for processing, but the processing has not been completed. */accepted=202,
/*! The server successfully processed the request and is not returning any content. */no_content=204,
/*! The server cannot or will not process the request due to an apparent client error */bad_request=400,
/*! Similar to 403 Forbidden, but specifically for use when authentication is required and has failed or has not yet been provided. */unauthorized=401,
/*! Reserved for future use. The */payment_required=402,
/*! the request was a valid request, but the server is refusing to respond to it. */forbidden=403,
/*! The requested resource could not be found but may be available in the future. */not_found=404,
/*! Allowed A request method is not supported for the requested resource */method_not_allowed=405,
/*! The resource identified by the request is only capable of generating response entities which have content characteristics not acceptable according to the accept headers sent in the request. */not_acceptable=406,
/*! A generic error message, given when an unexpected condition was encountered and no more specific message is suitable. */internal_server_error=500,
/*! The server either does not recognize the request method, or it lacks the ability to fulfill the request. */not_implemented=501,
/*! The server was acting as a gateway or proxy and received an invalid response from the upstream server. */bad_gateway=502,
/*! The server is currently unavailable (because it is overloaded or down for maintenance). Generally, this is a temporary state. */service_unavailable=503,
/*! Gateway timed out */gateway_timeout=504,
/*! http-version not supported */http_version_not_supported=505
/// creates a http::code object out of a http::status code
staticcodehttp_code(statusstatus){switch(status){caseaccepted:return{status,"Accepted"};casebad_gateway:return{status,"Bad gateway"};casebad_request:return{status,"Bad Request"};casecreated:return{status,"Created"};caseforbidden:return{status,"Forbidden"};casegateway_timeout:return{status,"Gateway Timeout"};casehttp_version_not_supported:return{status,"HTTP Version Not Supported"};caseinternal_server_error:return{status,"Internal Server Error"};casemethod_not_allowed:return{status,"Method Not Allowed"};casenot_acceptable:return{status,"Not Acceptable"};caseno_content:return{status,"No Content"};casenot_found:return{status,"Not Found"};casenot_implemented:return{status,"Not Implemented"};caseok:return{status,"OK"};casepayment_required:return{status,"Payment Required"};caseservice_unavailable:return{status,"Service Unavailable"};caseunauthorized:return{status,"Unauthorized"};default:return{status,"UNKNOWN"};}}