HTTP Status Codes
Complete reference for HTTP status codes used in API responses
Continue
InformationalThe server has received the request headers and the client should proceed to send the request body.
Switching Protocols
InformationalThe requester has asked the server to switch protocols and the server has agreed.
Processing
InformationalThe server has received and is processing the request, but no response is available yet.
Early Hints
InformationalUsed to return some response headers before final HTTP message.
OK
SuccessThe request succeeded. The result depends on the HTTP method used.
Created
SuccessThe request succeeded, and a new resource was created as a result.
Accepted
SuccessThe request has been received but not yet acted upon.
Non-Authoritative Information
SuccessThe returned metadata is not exactly the same as available from the origin server.
No Content
SuccessThere is no content to send for this request, but the headers may be useful.
Reset Content
SuccessTells the user agent to reset the document which sent this request.
Partial Content
SuccessThis response code is used when the Range header is sent from the client.
Multi-Status
SuccessConveys information about multiple resources, for situations where multiple status codes might be appropriate.
Multiple Choices
RedirectionThe request has more than one possible response.
Moved Permanently
RedirectionThe URL of the requested resource has been changed permanently.
Found
RedirectionThe URI of requested resource has been changed temporarily.
See Other
RedirectionThe server sent this response to direct the client to get the requested resource at another URI.
Not Modified
RedirectionUsed for caching purposes. The response has not been modified.
Temporary Redirect
RedirectionThe server sends this response to direct the client to get the requested resource at another URI with same method.
Permanent Redirect
RedirectionThe resource is now permanently located at another URI, specified by the Location header.
Bad Request
Client ErrorThe server cannot process the request due to a client error (malformed syntax, invalid request).
Unauthorized
Client ErrorAuthentication is required and has failed or has not been provided.
Payment Required
Client ErrorReserved for future use. Originally intended for digital payment systems.
Forbidden
Client ErrorThe client does not have access rights to the content.
Not Found
Client ErrorThe server cannot find the requested resource.
Method Not Allowed
Client ErrorThe request method is known by the server but not supported by the target resource.
Not Acceptable
Client ErrorThe server cannot produce a response matching the list of acceptable values.
Proxy Authentication Required
Client ErrorAuthentication is needed to be done by a proxy.
Request Timeout
Client ErrorThe server would like to shut down this unused connection.
Conflict
Client ErrorThe request conflicts with the current state of the server.
Gone
Client ErrorThe requested content has been permanently deleted from server.
Length Required
Client ErrorThe server rejected the request because the Content-Length header is not defined.
Precondition Failed
Client ErrorThe client has indicated preconditions in its headers which the server does not meet.
Payload Too Large
Client ErrorRequest entity is larger than limits defined by server.
URI Too Long
Client ErrorThe URI requested by the client is longer than the server is willing to interpret.
Unsupported Media Type
Client ErrorThe media format of the requested data is not supported by the server.
Range Not Satisfiable
Client ErrorThe range specified by the Range header in the request cannot be fulfilled.
Expectation Failed
Client ErrorThe expectation given in the Expect request header cannot be met by the server.
I'm a Teapot
Client ErrorThe server refuses to brew coffee because it is, permanently, a teapot. (April Fools joke)
Unprocessable Entity
Client ErrorThe request was well-formed but was unable to be followed due to semantic errors.
Locked
Client ErrorThe resource that is being accessed is locked.
Too Many Requests
Client ErrorThe user has sent too many requests in a given amount of time (rate limiting).
Unavailable For Legal Reasons
Client ErrorThe user agent requested a resource that cannot legally be provided.
Internal Server Error
Server ErrorThe server has encountered a situation it does not know how to handle.
Not Implemented
Server ErrorThe request method is not supported by the server and cannot be handled.
Bad Gateway
Server ErrorThe server, while working as a gateway, got an invalid response.
Service Unavailable
Server ErrorThe server is not ready to handle the request. Common causes are maintenance or overload.
Gateway Timeout
Server ErrorThe server is acting as a gateway and cannot get a response in time.
HTTP Version Not Supported
Server ErrorThe HTTP version used in the request is not supported by the server.
Insufficient Storage
Server ErrorThe server is unable to store the representation needed to complete the request.
Loop Detected
Server ErrorThe server detected an infinite loop while processing the request.
Network Authentication Required
Server ErrorThe 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:
{{$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