Constants
mmhttp defines the following constants for frequently used HTTP status codes (the codes of the 200 series indicate success, the 400 series are error codes, according to the RFC 2616 specification). Note that the textual representations of HTTP status codes can be obtained via function httpreason.
- HTTP_OK: 200
- HTTP_CREATED: 201
- HTTP_ACCEPTED: 202
- HTTP_NO_CONTENT: 204
- HTTP_RESET_CONTENT: 205
- HTTP_BAD_REQUEST: 400
- HTTP_UNAUTHORIZED: 401
- HTTP_PAYMENT_REQUIRED: 402
- HTTP_FORBIDDEN: 403
- HTTP_NOT_FOUND: 404
- HTTP_METHOD_NOT_ALLOWED: 405
- HTTP_NOT_ACCEPTABLE: 406
- HTTP_PROXY_AUTHENTICATION_REQUIRED: 407
- HTTP_REQUEST_TIMEOUT: 408