statuskode
Statuskode, or status code in English, is a numeric value used in network protocols to indicate the result of a request. In the web context the HTTP response line includes a statuskode that tells the client whether the request succeeded, was redirected, or failed, and why.
HTTP defines five classes of statuscodes: 1xx informational, 2xx success, 3xx redirection, 4xx client error, and
Clients should rely on the numeric code; the reason phrase is optional in HTTP/1.1 and later, and
Standardization and scope: The codes are defined in RFCs such as RFC 7231 for HTTP/1.1. While HTTP
Design considerations: When building an API, choose appropriate codes to reflect outcomes, accompany with informative body