Skip to content

Commit 03afb49

Browse files
sirainencmouse
authored andcommitted
developers/design: Add internal lib-http response codes
1 parent d3127c7 commit 03afb49

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

docs/developers/design/http.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
layout: doc
3+
title: lib-http
4+
dovecotlinks:
5+
lib_http: lib-http
6+
lib_http_response_codes:
7+
hash: internal-http-response-codes
8+
text: "Dovecot HTTP Internal Response Codes"
9+
---
10+
11+
# lib-http
12+
13+
## Internal HTTP Response Codes
14+
15+
| Number | Code | Description |
16+
| ------ | ---- | ----------- |
17+
| 9000 | ABORTED | The request was aborted. |
18+
| 9001 | INVALID_URL | Failed to parse HTTP target url. |
19+
| 9002 | HOST_LOOKUP_FAILED | Failed to perform DNS lookup for the host. |
20+
| 9003 | CONNECT_FAILED | Failed to setup any connection for the host and client settings allowed no more attempts. |
21+
| 9004 | INVALID_REDIRECT | Service returned an invalid redirect response for this request. |
22+
| 9005 | CONNECTION_LOST | The connection was lost unexpectedly while handling the request and client settings allowed no more attempts. |
23+
| 9006 | BROKEN_PAYLOAD | The input stream passed to the request using http_client_request_set_payload() returned an error while sending the request. |
24+
| 9007 | BAD_RESPONSE | The service returned a bad response. |
25+
| 9008 | TIMED_OUT | The request timed out (either this was the last attempt or the absolute timeout was hit). |

0 commit comments

Comments
 (0)