Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
jcadam
9y ago
0 comments
Save
Share
Programmers who want their REST API to return correct http response codes. I have a good many of them memorized by now. :(
...someday I'll find an excuse to return a 418.
0 comments
1 comments · 1 top-level
top
newest
oldest
lj3
9y ago
Bah! Just always return 200 and if there's an error, make your users look for an error property in the json return value that contains a thoroughly unhelpful error message, like "I'm a teapot." ;)
j
/
k
navigate · click thread line to collapse