> For the complete documentation index, see [llms.txt](https://hyundai-robotics.gitbook.io/hi6-robot-language/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hyundai-robotics.gitbook.io/hi6-robot-language/6-external-comm/2-http_cli/4-http_cli-code.md).

# 6.2.4 HTTP client 통신 코드

* HTTP 주요 응답 코드

| 응답대역          | 응답코드                          | 설명                    |
| ------------- | ----------------------------- | --------------------- |
| Informational | 100                           | continue              |
| 101           | Switching protocols           |                       |
|               |                               |                       |
| Success       | 200                           | OK                    |
| 201           | Created                       |                       |
| 202           | Accepted                      |                       |
| 203           | Non-authoritative information |                       |
| 204           | No content                    |                       |
|               |                               |                       |
| Redirection   | 301                           | Moved permanently     |
| 302           | Not temporarily               |                       |
| 303           | Not modified                  |                       |
| Client error  | 400                           | Bad Request           |
| 401           | Unauthorized                  |                       |
| 402           | Payment required              |                       |
| 403           | Forbidden                     |                       |
| 404           | Not found                     |                       |
| 405           | Method not allowed            |                       |
| 407           | Proxy authentication required |                       |
| 408           | Request timeout               |                       |
| 410           | Gone                          |                       |
| 412           | Precondition failed           |                       |
| 414           | Request-URI too long          |                       |
| Server error  | 500                           | Internal server error |
| 501           | Not implemented               |                       |
| 503           | Service unnailable            |                       |
| 504           | Gateway timeout               |                       |
| 505           | HTTP version not supported    |                       |

* 에러 코드(Exception)

| 에러명                | 에러코드 | 설명                                                                                                                                                                                                                                                                 |
| ------------------ | ---- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| RequestException   | -1   | There was an ambiguous exception that occurred while handling your request.                                                                                                                                                                                        |
| ConnectionErr      | -2   | In the event of a network problem (e.g. DNS failure, refused connection, etc)                                                                                                                                                                                      |
| HTTPError          | -3   | It will occur if the HTTP request returned an unsuccessful status code.                                                                                                                                                                                            |
| URLRequired        | -4   | A valid URL is required to make a request.                                                                                                                                                                                                                         |
| TooManyRedirects   | -5   | If a request exceeds the configured number of maximum redirections, a TooManyRedirects exception is raised.                                                                                                                                                        |
| Timeout            | -6   | If a request times out, a Timeout exception is raised.                                                                                                                                                                                                             |
| SessionInvalid     | -7   | This error indicates that the session is invalid because a runtime error occurred while processing a session request. Session is invalid. This error apears when the runtime error is happend during session requests.                                             |
| UnhandledException | -8   | An unexpected error occurred during the HTTP request or response processing (e.g., session creation, request execution, or response parsing) and did not match any explicitly handled exceptions. The request outcome is therefore reported as UnhandledException. |
| InvalidTimeout     | -9   | When the timeout value exceeds the range of 5 ms to 15 ms.                                                                                                                                                                                                         |
