SiteError.comYour friendly guide to HTTP status codes
Status CodesBlog
  1. Home
  2. 2xx Success
  3. 202 Accepted

202 Accepted

📋
202
Accepted
✨
✨

Example HTTP Response

HTTP Response
HTTP/1.1 202 Accepted
Content-Type: application/json

{"status": "queued", "jobId": "abc123"}
Common Causes
  • Batch processing job queued
  • Email scheduled for delivery
  • Async operation started
Technical Details

What does this mean?

Got it! Your request is in the queue. Like ordering at a busy restaurant — they've taken your order but your food isn't ready yet.

Technical Definition

The request has been accepted for processing, but the processing has not been completed.

RFC Says

"The 202 (Accepted) status code indicates that 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."

Plain English:

202 means 'I've received your request and will process it later.' Use this for asynchronous operations like batch jobs, video encoding, or email sending. The response often includes a job ID or location where the client can check the status later.

Common Misinterpretation

202 doesn't guarantee the operation will succeed - just that it's been queued. Always provide a way for clients to check the operation status (via a job ID or status URL).

View RFC Documentation
Code Snippets

Ready-to-use code for returning this HTTP status in your application:

Node.js
// Express.js
app.get('/example', (req, res) => {
  res.status(202).json({
    error: 'Accepted',
    message: 'Your error message here'
  });
});

// Native HTTP
const http = require('http');

http.createServer((req, res) => {
  res.writeHead(202, { 'Content-Type': 'application/json' });
  res.end(JSON.stringify({
    error: 'Accepted',
    message: 'Your error message here'
  }));
}).listen(3000);

202 Accepted FAQ

What causes a 202 Accepted error?

Batch processing job queued. Email scheduled for delivery. Async operation started.

201 Created203 Non-Authoritative Information

Popular Status Codes

  • 200 OK
  • 301 Moved Permanently
  • 302 Found
  • 400 Bad Request
  • 401 Unauthorized
  • 403 Forbidden
  • 404 Not Found
  • 500 Internal Server Error
  • 502 Bad Gateway
  • 503 Service Unavailable

Compare Codes

  • 401 vs 403
  • 301 vs 302
  • 404 vs 410
  • 500 vs 502
  • Compare any codes →

Categories

  • Informational
  • Success
  • Redirection
  • Client Error
  • Server Error
  • NGINX
  • Cloudflare
  • AWS ELB
  • Microsoft IIS

Tools

  • Cheat Sheet
  • Status Code Quiz
  • URL Checker
  • API Playground
  • Blog

© 2026 SiteError.com. All rights reserved.