0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Http - How to Use Http Status 202 for Async Request Reply

Last updated at Posted at 2021-11-09

The 202 response should return a header with key name of "Location" and value of monitor working status URL.

Calling this monitor-working-status URL then return:

  1. 200 OK when the request is still pending.

  2. 201 Created when the request has been completed.
    The Response in case of GET/PUT/POST should contain the Location to the requested/created/updated resource.

https://docs.microsoft.com/zh-tw/azure/architecture/patterns/async-request-reply
https://github.com/mcumcu/two-oh-two
https://stackoverflow.com/questions/5079367/use-http-status-202-for-asynchronous-operations
https://stackoverflow.com/questions/26199228/is-the-use-of-location-header-in-http-202-response-rfc-compliant?noredirect=1&lq=1

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?