Skip to content

Centralize http response error handling. Better HTTP error messages.#42

Merged
BrandesEric merged 1 commit into
mainfrom
error-messages
Jun 25, 2026
Merged

Centralize http response error handling. Better HTTP error messages.#42
BrandesEric merged 1 commit into
mainfrom
error-messages

Conversation

@BrandesEric

Copy link
Copy Markdown
Contributor

Our previous HTTP timeout was 15 seconds, we've lowered it to 10 seconds for more responsive failures. Additionally we now have a 5 second TCP dial timeout which should make unreachable hosts fail that much faster. Finally, we centralized all HTTP Client calls in one place, with one TLS transport for simplicity. This allows us to intercept certain errors and provide nicer error messages too (for example in the case of HTTP client timeouts)

@BrandesEric
BrandesEric merged commit f6e380d into main Jun 25, 2026
1 check passed
@BrandesEric
BrandesEric deleted the error-messages branch June 25, 2026 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant