Skip to content
Latchkey

Status Code - CI/CD Glossary Definition

A status code is the three-digit HTTP number that classifies a response as success, redirect, or error.

A status code is the three-digit HTTP number in a response that signals the result: 2xx success, 3xx redirect, 4xx client error, 5xx server error. Contract tests assert the exact code an endpoint returns.

Status codes are the first thing a test checks: a 200 versus a 500 tells you if the request succeeded. Asserting exact codes catches regressions the body alone might hide.

Classes

1xx informational, 2xx success, 3xx redirection, 4xx client error, and 5xx server error. A 429 is rate limiting; a 503 often signals a service not ready.

Related guides

Run this faster and cheaper on Latchkey managed runners. Start free →