Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by Kwpolska

5 months ago

403/404 seems to be the response to GET, not POST. In which case 405 Method Not Allowed would be better.

2 comments

Kwpolska

Reply

whenlambo  5 months ago

And 405 response must include `Allow: POST` header.

raldi  5 months ago

Oh, I misread. Indeed, 4xx makes sense for a GET.

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities