HTTP Status Codes

Complete reference for HTTP status codes used in API responses

100

Continue

Informational

The server has received the request headers and the client should proceed to send the request body.

101

Switching Protocols

Informational

The requester has asked the server to switch protocols and the server has agreed.

102

Processing

Informational

The server has received and is processing the request, but no response is available yet.

103

Early Hints

Informational

Used to return some response headers before final HTTP message.

200

OK

Success

The request succeeded. The result depends on the HTTP method used.

201

Created

Success

The request succeeded, and a new resource was created as a result.

202

Accepted

Success

The request has been received but not yet acted upon.

203

Non-Authoritative Information

Success

The returned metadata is not exactly the same as available from the origin server.

204

No Content

Success

There is no content to send for this request, but the headers may be useful.

205

Reset Content

Success

Tells the user agent to reset the document which sent this request.

206

Partial Content

Success

This response code is used when the Range header is sent from the client.

207

Multi-Status

Success

Conveys information about multiple resources, for situations where multiple status codes might be appropriate.

300

Multiple Choices

Redirection

The request has more than one possible response.

301

Moved Permanently

Redirection

The URL of the requested resource has been changed permanently.

302

Found

Redirection

The URI of requested resource has been changed temporarily.

303

See Other

Redirection

The server sent this response to direct the client to get the requested resource at another URI.

304

Not Modified

Redirection

Used for caching purposes. The response has not been modified.

307

Temporary Redirect

Redirection

The server sends this response to direct the client to get the requested resource at another URI with same method.

308

Permanent Redirect

Redirection

The resource is now permanently located at another URI, specified by the Location header.

400

Bad Request

Client Error

The server cannot process the request due to a client error (malformed syntax, invalid request).

401

Unauthorized

Client Error

Authentication is required and has failed or has not been provided.

402

Payment Required

Client Error

Reserved for future use. Originally intended for digital payment systems.

403

Forbidden

Client Error

The client does not have access rights to the content.

404

Not Found

Client Error

The server cannot find the requested resource.

405

Method Not Allowed

Client Error

The request method is known by the server but not supported by the target resource.

406

Not Acceptable

Client Error

The server cannot produce a response matching the list of acceptable values.

407

Proxy Authentication Required

Client Error

Authentication is needed to be done by a proxy.

408

Request Timeout

Client Error

The server would like to shut down this unused connection.

409

Conflict

Client Error

The request conflicts with the current state of the server.

410

Gone

Client Error

The requested content has been permanently deleted from server.

411

Length Required

Client Error

The server rejected the request because the Content-Length header is not defined.

412

Precondition Failed

Client Error

The client has indicated preconditions in its headers which the server does not meet.

413

Payload Too Large

Client Error

Request entity is larger than limits defined by server.

414

URI Too Long

Client Error

The URI requested by the client is longer than the server is willing to interpret.

415

Unsupported Media Type

Client Error

The media format of the requested data is not supported by the server.

416

Range Not Satisfiable

Client Error

The range specified by the Range header in the request cannot be fulfilled.

417

Expectation Failed

Client Error

The expectation given in the Expect request header cannot be met by the server.

418

I'm a Teapot

Client Error

The server refuses to brew coffee because it is, permanently, a teapot. (April Fools joke)

422

Unprocessable Entity

Client Error

The request was well-formed but was unable to be followed due to semantic errors.

423

Locked

Client Error

The resource that is being accessed is locked.

429

Too Many Requests

Client Error

The user has sent too many requests in a given amount of time (rate limiting).

451

Unavailable For Legal Reasons

Client Error

The user agent requested a resource that cannot legally be provided.

500

Internal Server Error

Server Error

The server has encountered a situation it does not know how to handle.

501

Not Implemented

Server Error

The request method is not supported by the server and cannot be handled.

502

Bad Gateway

Server Error

The server, while working as a gateway, got an invalid response.

503

Service Unavailable

Server Error

The server is not ready to handle the request. Common causes are maintenance or overload.

504

Gateway Timeout

Server Error

The server is acting as a gateway and cannot get a response in time.

505

HTTP Version Not Supported

Server Error

The HTTP version used in the request is not supported by the server.

507

Insufficient Storage

Server Error

The server is unable to store the representation needed to complete the request.

508

Loop Detected

Server Error

The server detected an infinite loop while processing the request.

511

Network Authentication Required

Server Error

The client needs to authenticate to gain network access.

Handling Status Codes in n8n

IF Node Conditions

Use IF nodes to handle different status codes from API responses:

// Check for success
{{$json.statusCode >= 200 && $json.statusCode < 300}}

Common Patterns

  • 200-299: Request succeeded, process the data
  • 401: Re-authenticate and retry the request
  • 429: Wait and retry (rate limiting)
  • 500-599: Log error and notify team

Need Help Building n8n Workflows?

FlowEngine makes it easy to create powerful n8n automation workflows with AI assistance.

Try FlowEngine Free