HTTP Status Code
HTTP 상태 코드
HTTP 상태 코드는 응답에서 나타나는 세 자리 숫자입니다. 이는 요청의 표준 결과와 어떤 결과 그룹에 속하는지를 알려줍니다.
다른 예시
가져오기 API는 작업이 진행되는 동안 202와 상태 URL을 반환합니다. 즉시 생성 후에는 `Location`과 함께 201을 반환합니다. 버전 충돌이 발생하면 409를 반환하고, 유효하지 않은 의미의 CSV 필드가 있는 경우 422를 반환합니다. JSON 문제 본문은 코드의 의미를 바꾸지 않으면서 유용한 세부 정보를 추가합니다.
주요 부분
- 01상태 클래스
- 02등록된 코드
- 03응답 메타데이터 및 본문
사용할 때
결과에 맞는 가장 정확한 등록 코드를 반환하세요. 필요시 유용한 헤더와 안정적인 오류 본문을 추가하세요.
다음 경우에는 사용하지 마세요
모든 비즈니스 실패에 대해 200을 반환하지 마세요. 또한 비밀 권한 세부 정보를 노출할 정도로 구체적인 오류는 피하세요.
코드에서 사용된 이름
1xx informational, 2xx success, 3xx redirection, 4xx client, 5xx server 출시하기 전에
Check contracts and invariants, authorization, and input limits. Test retries, one-time effects, timeouts, and partial failures. Verify data integrity, compatibility, monitoring, recovery, and rollback.
Outcome:Complete the task with HTTP 상태 코드 (HTTP Status Code)。 User context:가져오기 API는 작업이 진행되는 동안 202와 상태 URL을 반환합니다. 즉시 생성 후에는 `Location`과 함께 201을 반환합니다. 버전 충돌이 발생하면 409를 반환하고, 유효하지 않은 의미의 CSV 필드가 있는 경우 422를 반환합니다. JSON 문제 본문은 코드의 의미를 바꾸지 않으면서 유용한 세부 정보를 추가합니다. Technical concept or control:HTTP 상태 코드 (HTTP Status Code)。 Why it fits:결과에 맞는 가장 정확한 등록 코드를 반환하세요. 필요시 유용한 헤더와 안정적인 오류 본문을 추가하세요. Do not use it when:모든 비즈니스 실패에 대해 200을 반환하지 마세요. 또한 비밀 권한 세부 정보를 노출할 정도로 구체적인 오류는 피하세요. Engineering requirements: Define inputs, outputs, contracts, and rules that must always hold. Set authorization and input checks. Define failures, timeouts, retries, one-time effects, data moves, and compatibility limits. Operations: Add useful signals and logs that hide sensitive data. Set capacity limits and write an operator guide. Test recovery and rollback. Acceptance criteria: Contract and failure-path tests pass. Data and authorization rules still hold during retries and partial failures. Check performance limits, monitoring, recovery, and rollback. Evidence and limits (evidence boundary):이 표준은 나열된 범위만 적용합니다. 시각적 스타일, 제품 결정, 또는 Vibulary 예시는 선택하지 않습니다. Unknowns to confirm: Where the code runs, data stores, traffic shape, consistency needs, and the security boundary. Also confirm the compatibility period, service goals, and rollback limits.
이 요청을 확인하세요
Review how HTTP 상태 코드 (HTTP Status Code) is used now. Definition: HTTP 상태 코드는 응답에서 나타나는 세 자리 숫자입니다. 이는 요청의 표준 결과와 어떤 결과 그룹에 속하는지를 알려줍니다. Release checks: Check contracts and invariants, authorization, and input limits. Test retries, one-time effects, timeouts, and partial failures. Verify data integrity, compatibility, monitoring, recovery, and rollback. Before changing code, list the evidence, gaps, severity, and the smallest safe fix.