C
typedef enum { HTTP_GET = 0u, HTTP_POST, HTTP_BAD_REQUEST, HTTP_UNAUTHORIZED, HTTP_NOT_FOUND, HTTP_OVERFLOW, HTTP_INTERNAL_SERVER_ERROR, HTTP_NOT_IMPLEMENTED, HTTP_MPFS_FORM, HTTP_MPFS_UP, HTTP_MPFS_OK, HTTP_MPFS_ERROR, HTTP_REDIRECT, HTTP_SSL_REQUIRED } HTTP_STATUS;
Description
Supported Commands and Server Response Codes
Members
Members |
Description |
HTTP_GET = 0u |
GET command is being processed |
HTTP_POST |
POST command is being processed |
HTTP_BAD_REQUEST |
400 Bad Request will be returned |
HTTP_UNAUTHORIZED |
401 Unauthorized will be returned |
HTTP_NOT_FOUND |
404 Not Found will be returned |
HTTP_OVERFLOW |
414 Request-URI Too Long will be returned |
HTTP_INTERNAL_SERVER_ERROR |
500 Internal Server Error will be returned |
HTTP_NOT_IMPLEMENTED |
501 Not Implemented (not a GET or POST command) |
HTTP_MPFS_FORM |
Show the MPFS Upload form |
HTTP_MPFS_UP |
An MPFS Upload is being processed |
HTTP_MPFS_OK |
An MPFS Upload was successful |
HTTP_MPFS_ERROR |
An MPFS Upload was not a valid image |
HTTP_REDIRECT |
302 Redirect will be returned |
HTTP_SSL_REQUIRED |
403 Forbidden is returned, indicating SSL is required |