LCOV - code coverage report
Current view: top level - zephyr/net/http - status.h Coverage Total Hit
Test: new.info Lines: 100.0 % 2 2
Test Date: 2025-09-05 16:43:28

            Line data    Source code
       1            1 : /** @file
       2              :  * @brief HTTP response status codes
       3              :  */
       4              : 
       5              : /*
       6              :  * Copyright (c) 2022 Meta
       7              :  *
       8              :  * SPDX-License-Identifier: Apache-2.0
       9              :  */
      10              : 
      11              : #ifndef ZEPHYR_INCLUDE_NET_HTTP_STATUS_H_
      12              : #define ZEPHYR_INCLUDE_NET_HTTP_STATUS_H_
      13              : 
      14              : /**
      15              :  * @brief HTTP response status codes
      16              :  * @defgroup http_status_codes HTTP response status codes
      17              :  * @since 3.3
      18              :  * @version 0.8.0
      19              :  * @ingroup networking
      20              :  * @{
      21              :  */
      22              : 
      23              : #ifdef __cplusplus
      24              : extern "C" {
      25              : #endif
      26              : 
      27              : /**
      28              :  * @brief HTTP response status codes
      29              :  *
      30              :  * @note HTTP response status codes are subject to IANA approval.
      31              :  *
      32              :  * @see <a href="https://www.iana.org/assignments/http-status-codes">Hypertext Transfer Protocol (HTTP) Status Code Registry</a>
      33              :  * @see <a href="https://www.ietf.org/rfc/rfc9110.txt">RFC9110</a>
      34              :  * @see <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Status">HTTP response status codes</a>
      35              :  */
      36            1 : enum http_status {
      37              :         HTTP_100_CONTINUE = 100, /**< Continue */
      38              :         HTTP_101_SWITCHING_PROTOCOLS = 101, /**< Switching Protocols */
      39              :         HTTP_102_PROCESSING = 102, /**< Processing */
      40              :         HTTP_103_EARLY_HINTS = 103, /**< Early Hints */
      41              :         HTTP_200_OK = 200, /**< OK */
      42              :         HTTP_201_CREATED = 201, /**< Created */
      43              :         HTTP_202_ACCEPTED = 202, /**< Accepted */
      44              :         HTTP_203_NON_AUTHORITATIVE_INFORMATION = 203, /**< Non-Authoritative Information */
      45              :         HTTP_204_NO_CONTENT = 204, /**< No Content */
      46              :         HTTP_205_RESET_CONTENT = 205, /**< Reset Content */
      47              :         HTTP_206_PARTIAL_CONTENT = 206, /**< Partial Content */
      48              :         HTTP_207_MULTI_STATUS = 207, /**< Multi-Status */
      49              :         HTTP_208_ALREADY_REPORTED = 208, /**< Already Reported */
      50              :         HTTP_226_IM_USED = 226, /**< IM Used */
      51              :         HTTP_300_MULTIPLE_CHOICES = 300, /**< Multiple Choices */
      52              :         HTTP_301_MOVED_PERMANENTLY = 301, /**< Moved Permanently */
      53              :         HTTP_302_FOUND = 302, /**< Found */
      54              :         HTTP_303_SEE_OTHER = 303, /**< See Other */
      55              :         HTTP_304_NOT_MODIFIED = 304, /**< Not Modified */
      56              :         HTTP_305_USE_PROXY = 305, /**< Use Proxy */
      57              :         HTTP_306_UNUSED = 306, /**< unused */
      58              :         HTTP_307_TEMPORARY_REDIRECT = 307, /**< Temporary Redirect */
      59              :         HTTP_308_PERMANENT_REDIRECT = 308, /**< Permanent Redirect */
      60              :         HTTP_400_BAD_REQUEST = 400, /**< Bad Request */
      61              :         HTTP_401_UNAUTHORIZED = 401, /**< Unauthorized */
      62              :         HTTP_402_PAYMENT_REQUIRED = 402, /**< Payment Required */
      63              :         HTTP_403_FORBIDDEN = 403, /**< Forbidden */
      64              :         HTTP_404_NOT_FOUND = 404, /**< Not Found */
      65              :         HTTP_405_METHOD_NOT_ALLOWED = 405, /**< Method Not Allowed */
      66              :         HTTP_406_NOT_ACCEPTABLE = 406, /**< Not Acceptable */
      67              :         HTTP_407_PROXY_AUTHENTICATION_REQUIRED = 407, /**< Proxy Authentication Required */
      68              :         HTTP_408_REQUEST_TIMEOUT = 408, /**< Request Timeout */
      69              :         HTTP_409_CONFLICT = 409, /**< Conflict */
      70              :         HTTP_410_GONE = 410, /**< Gone */
      71              :         HTTP_411_LENGTH_REQUIRED = 411, /**< Length Required */
      72              :         HTTP_412_PRECONDITION_FAILED = 412, /**< Precondition Failed */
      73              :         HTTP_413_PAYLOAD_TOO_LARGE = 413, /**< Payload Too Large */
      74              :         HTTP_414_URI_TOO_LONG = 414, /**< URI Too Long */
      75              :         HTTP_415_UNSUPPORTED_MEDIA_TYPE = 415, /**< Unsupported Media Type */
      76              :         HTTP_416_RANGE_NOT_SATISFIABLE = 416, /**< Range Not Satisfiable */
      77              :         HTTP_417_EXPECTATION_FAILED = 417, /**< Expectation Failed */
      78              :         HTTP_418_IM_A_TEAPOT = 418, /**< I'm a teapot */
      79              :         HTTP_421_MISDIRECTED_REQUEST = 421, /**< Misdirected Request */
      80              :         HTTP_422_UNPROCESSABLE_ENTITY = 422, /**< Unprocessable Entity */
      81              :         HTTP_423_LOCKED = 423, /**< Locked */
      82              :         HTTP_424_FAILED_DEPENDENCY = 424, /**< Failed Dependency */
      83              :         HTTP_425_TOO_EARLY = 425, /**< Too Early */
      84              :         HTTP_426_UPGRADE_REQUIRED = 426, /**< Upgrade Required */
      85              :         HTTP_428_PRECONDITION_REQUIRED = 428, /**< Precondition Required */
      86              :         HTTP_429_TOO_MANY_REQUESTS = 429, /**< Too Many Requests */
      87              :         HTTP_431_REQUEST_HEADER_FIELDS_TOO_LARGE = 431, /**< Request Header Fields Too Large */
      88              :         HTTP_451_UNAVAILABLE_FOR_LEGAL_REASONS = 451, /**< Unavailable For Legal Reasons */
      89              :         HTTP_500_INTERNAL_SERVER_ERROR = 500, /**< Internal Server Error */
      90              :         HTTP_501_NOT_IMPLEMENTED = 501, /**< Not Implemented */
      91              :         HTTP_502_BAD_GATEWAY = 502, /**< Bad Gateway */
      92              :         HTTP_503_SERVICE_UNAVAILABLE = 503, /**< Service Unavailable */
      93              :         HTTP_504_GATEWAY_TIMEOUT = 504, /**< Gateway Timeout */
      94              :         HTTP_505_HTTP_VERSION_NOT_SUPPORTED = 505, /**< HTTP Version Not Supported */
      95              :         HTTP_506_VARIANT_ALSO_NEGOTIATES = 506, /**< Variant Also Negotiates */
      96              :         HTTP_507_INSUFFICIENT_STORAGE = 507, /**< Insufficient Storage */
      97              :         HTTP_508_LOOP_DETECTED = 508, /**< Loop Detected */
      98              :         HTTP_510_NOT_EXTENDED = 510, /**< Not Extended */
      99              :         HTTP_511_NETWORK_AUTHENTICATION_REQUIRED = 511, /**< Network Authentication Required */
     100              : };
     101              : 
     102              : #ifdef __cplusplus
     103              : }
     104              : #endif
     105              : 
     106              : /**
     107              :  * @}
     108              :  */
     109              : 
     110              : #endif
        

Generated by: LCOV version 2.0-1