Hacker Newsnew | past | comments | ask | show | jobs | submitlogin



Actually it doesn't. The "hard" problem here isn't telling the client to come back later, it is providing the client with a way to get the actual results later. So providing a request identifier that gets populated in a database when the task is complete may be one way to do that.


  → POST /resource
  ← 202 Accepted
  ← Location: /jobs/XXX


Right but you need /jobs/XXX to return a response that is not 404. How you accomplish this is outside the scope of what 202 provides you.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: