Home

2xx

2xx is the class of HTTP status codes that indicate successful handling of a request. In the HTTP protocol, each response carries a three-digit status code; codes in the 2xx range indicate that the server has successfully processed the request and produced a result, or that the requested action has been completed. These codes sit between informational and redirection, and they contrast with 3xx redirects, 4xx client errors, and 5xx server errors.

Common examples include 200 OK, the standard success response; 201 Created, used when a new resource is

Other 2xx codes include 207 Multi-Status and 208 Already Reported, used by WebDAV, and 226 IM Used,

In API design and web applications, 2xx codes guide clients on how to handle the result. The

created
as
a
result
of
the
request;
202
Accepted,
meaning
the
request
has
been
received
for
processing
but
is
not
yet
completed;
203
Non-Authoritative
Information;
204
No
Content,
which
returns
no
body;
205
Reset
Content,
directing
the
client
to
reset
the
document
view;
and
206
Partial
Content,
used
when
fulfilling
a
range
request.
defined
for
delta
encoding
of
resources.
While
all
2xx
responses
indicate
success,
their
payload
and
semantics
vary:
200
and
201
typically
include
a
response
body,
204
returns
no
body,
and
206
carries
partial
content.
specific
code
chosen
reflects
whether
a
resource
was
created,
whether
processing
is
asynchronous,
and
whether
a
response
body
is
needed
to
convey
the
result.