Official Deprecated
a time-consuming request is processed

Specification of the HTTP status code 102

The 102 Processing status code is an interim response used to inform the client that the server has accepted the complete request, but has not yet completed it. This status code SHOULD only be sent when the server has a reasonable expectation that the request will take significant time to complete. As guidance, if a method is taking longer than 20 seconds (a reasonable, but arbitrary value) to process the server SHOULD return a 102 Processing response. The server MUST send a final response after the request has been completed. Methods can potentially take a long period of time to process, especially methods that support the Depth header. In such cases the client may time-out the connection while waiting for a response. To prevent this the server may return a 102 Processing status code to indicate to the client that the server is still processing the method.

Source / Quote by: The 102 Processing HTTP Status Code is specified by section 10.1 of RFC2518.

How to throw a 102 statuscode with PHP?

To throw the HTTP status code 102 on a web page, the PHP function http_response_code can be used. The syntax is as follows: http_response_code(102) (PHP 5 >= 5.4.0, PHP 7, PHP 8)

Test the 102 HTTP status code

In order to be able to display the HTTP status code (in this case 102 Processing) and other information on the client side, the development console must be opened with F12. Afterwards you have to navigate to the tab "Network". Now you can open the page, in the network tab you should see the web page (example index.php). This must be selected and then the Herder section must be selected. Here the user will see the following result:

Status code 102 Processing
URL: https://http-statuscode.com/errorCodeExample.php?code=102
Status: 102 Processing
Those: Network
IP address: XX.XX.XX.XX
Status code 102 Processing

Browser compatibility of the 102 status code

Chrome No (Deprecated)
Edge No (Deprecated)
Firefox No (Deprecated)
Opera No (Deprecated)
Safari No (Deprecated)
Chrome Android No (Deprecated)
Firefox for Android No (Deprecated)
Opera Android No (Deprecated)
Safari on iOS No (Deprecated)
Internet No (Deprecated)
WebView Android No (Deprecated)

Constants in programming languages

Author: Tony Brüser
Author: Tony Brüser

Tony Brüser is an enthusiastic web developer with a penchant for HTTP status codes.