Success (2xx)
HTTP 202 — 202 Accepted
The request has been accepted for processing, but the processing has not been completed.
Common Causes & Diagnoses
- •Asynchronous batch job or background queue worker queued the task.
Spesifikasyon & Kategori
Status Code:202
Category:Success (2xx)
RFC Standard:RFC 9110 / HTTP/1.1 & HTTP/2
Multi-Language Code Implementations
How to Handle, Return & Test HTTP 202
Status: 202 202 Accepted
server.js / handler.ts
// Express.js Server Response
app.get('/api/resource', (req, res) => {
return res.status(202).json({ success: true, status: 202 });
});
// Client-side fetch error check
const response = await fetch('/api/resource');
if (response.status === 202) {
console.warn('Received HTTP 202 202 Accepted');
}💡 Pro Tip: Ensure appropriate error handling middleware or proxy interceptors are enabled so client applications receive structured JSON responses for HTTP 202.
How to Fix / Practical Code Solutions
Return 202 for Async Jobs
Return job ID and status poll endpoint.
res.status(202).json({ jobId: "job_99812", status: "queued" });Other Popular HTTP Status Codes
Frequently Asked Questions
Common Questions About HTTP 202 to RFC Standard
Everything you need to know regarding specifications, syntax, and security best practices.
The request has been accepted for processing, but the processing has not been completed. In Turkish: İstek arka planda işlenmek üzere kabul edildi ve kuyruğa alındı.