http 202 Accepted

Discussion in 'Windows Error Code, Crashes, BSOD, and Hangs' started by securityhope, Feb 9, 2017.

Tags:
  1. securityhope

    securityhope Administrator Staff Member

    Joined:
    Aug 3, 2016
    Messages:
    1,241
    Likes Received:
    0
    Trophy Points:
    36
    2×× Success

    202 Accepted

    The request has been accepted for processing, but the processing has not been completed. The request might or might not eventually be acted upon, as it might be disallowed when processing actually takes place.

    There is no facility in HTTP for re-sending a status code from an asynchronous operation.
    The 202 response is intentionally noncommittal. Its purpose is to allow a server to accept a request for some other process (perhaps a batch-oriented process that is only run once per day) without requiring that the user agent's connection to the server persist until the process is completed. The representation sent with this response ought to describe the request's current status and point to (or embed) a status monitor that can provide the user with an estimate of when the request will be fulfilled.
    202 Code References

    Rails HTTP Status Symbol :accepted
    Go HTTP Status Constant http.StatusAccepted
    Symfony HTTP Status Constant Response::HTTP_ACCEPTED
    Python2 HTTP Status Constant httplib.ACCEPTED
    Python3 HTTP Status Constant http.client.ACCEPTED
    Python3.5 HTTP Status Constant http.HTTPStatus.ACCEPTED
     
    Last edited: Feb 9, 2017

Share This Page

Share