Elixir Status

You're probably underusing middleware for HTTP response handling (opens in new tab)

You're probably underusing middleware for HTTP response handling 17 May 2026 by fuelen A note on a pattern I keep running into in Elixir API clients: status-code checks and body parsing live in code after Tesla.request, instead of inside the middleware chain itself. It looks fine from the caller’s side, but it silently breaks observability. A 500 translated to {:error, _} looks like a successful request to Tesla, so :telemetry and anything else wired up to the request lifecycle stay quiet.

Read the original article
Sign in to keep reading the full article.

Keyboard Shortcuts

Navigation

Next / previous post
j/k
Open post
oorEnter
Preview post
v

Post Actions

Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Save / unsave
s

Recommendations

Add interest / feed
Enter
Not interested
x

Go to

Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Discover
gb
Search
/

General

Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help