tool::http-status-detail
202 Accepted
The request has been accepted but not yet acted upon.
상태 코드
202
이름
Accepted
카테고리
2xx상세 설명
HTTP 202 Accepted는 요청이 처리를 위해 수락되었지만 아직 완료되지 않았음을 나타냅니다. 비동기 작업에서 사용되며, 서버가 나중에 작업을 처리할 것임을 의미합니다. 이메일 전송, 파일 처리, 배치 작업 등 즉시 결과를 반환할 수 없는 경우에 적합합니다.
주요 원인
- ▸비동기 이메일 전송 요청이 큐에 추가된 경우
- ▸긴 배치 작업이 백그라운드에서 처리를 시작한 경우
- ▸외부 서비스 연동 작업이 비동기로 처리되는 경우
- ▸파일 처리, 리포트 생성 등 시간이 걸리는 작업 요청
해결 방법
- 1.202는 정상 응답이므로 수정이 필요하지 않습니다
- 2.처리 상태 확인을 위한 폴링 URL이나 웹훅을 응답에 포함하는 것을 권장합니다
- 3.비동기 작업 실패 시 별도의 알림 메커니즘을 구현하세요
관련 HTTP 헤더
LocationContent-Type응답 예시
HTTP/1.1 202 Accepted
Content-Type: application/json
Location: /api/jobs/abc123
{"jobId":"abc123","status":"pending","checkUrl":"/api/jobs/abc123"}관련 상태 코드
200OKThe request has succeeded.→201CreatedThe request has been fulfilled and a new resource has been created.→203Non-Authoritative InformationThe response is from a transforming proxy, not the origin server.→204No ContentThe server successfully processed the request but returns no content.→205Reset ContentThe server processed the request; the client should reset the document view.→
ad · 300×250
// related tools