Every response from a web server, including the Pipe17 API, carries an HTTP status code. The code tells you whether the request worked and, if it didn't, whether to fix the request or try again later. This guide explains the code classes, lists the codes the Pipe17 API returns, and covers codes you may see from other systems in your integrations.
Status code classes
The first digit of a status code tells you its class:
- 2xx Success: the request was received, understood, and processed.
- 3xx Redirection: the client must take another step, such as following a new URL.
- 4xx Client errors: something is wrong with the request. Sending the same request again gives the same result, so fix the request first.
- 5xx Server errors: the server couldn't complete a valid request. These are often temporary, so retry after a short wait.
Codes the Pipe17 API returns
| Code | Meaning | What to do |
|---|---|---|
| 200 OK | The request succeeded. Reads, updates, and deletes return the result in the response body. | Nothing. |
| 201 Created | The record was created. | Nothing. |
| 202 Accepted | You sent several records in one request and at least one was accepted for processing. | Check the status of each record in the response body. |
| 207 Multi-Status | Part of the request succeeded and part didn't. Only a few endpoints return this. | Check each result in the response body and resend the ones that failed. |
| 400 Bad Request | The request is malformed or fails validation, such as a missing required field or a value of the wrong type. | Read message and errors in the response, fix the request, and send it again. |
| 401 Unauthorized | The API key is missing or isn't valid. | Send a valid API key in the X-Pipe17-Key header. |
| 403 Forbidden | The API key or user doesn't have permission for this action. | Use a key with the right permissions, or ask an admin to update them. |
| 404 Not Found | The record or endpoint doesn't exist, or isn't visible to your organization. | Check the ID and the URL. |
| 405 Method Not Allowed | The operation isn't supported for this endpoint, for example a delete that the entity doesn't allow. | Use a supported operation. |
| 409 Conflict | The request conflicts with the record's current state, such as a duplicate key or a record that changed while you were updating it. | Read the record again, then retry with current data. |
| 413 Payload Too Large | The request body is larger than the API accepts. | Send fewer records per request. |
| 429 Too Many Requests | The API key went over its usage limits. | Wait, then retry with increasing delays between attempts. |
| 500 Internal Server Error | The API ran into an unexpected error. | Retry after a short wait. If it keeps happening, submit a support request. |
| 503 Service Unavailable | A service the API depends on is busy or unavailable. | Retry after a short wait. |
| 504 Gateway Timeout | The request took too long and timed out. The message reads "Request timed out". | Retry. For large reads, request smaller pages. |
Error response body
When a request fails, the Pipe17 API returns a JSON body with the same code and details about what went wrong:
{
"success": false,
"code": 400,
"message": "Short description of the problem",
"errors": [
"Detail about the problem"
]
}Log message and errors with every failed request. They're the fastest way to find the cause. For guidance on retries and exceptions in a custom integration, see Chapter 8: Errors, retries and exceptions.
Codes you may see from other systems
Your integrations also talk to other platforms, such as sales channels, warehouses, and carriers. Their responses can show up in integration logs and exceptions. Common codes that the Pipe17 API itself doesn't send:
- 204 No Content: the request succeeded and there's no response body.
- 301 Moved Permanently: the resource has a new permanent URL.
- 302 Found: the resource is temporarily at a different URL.
- 304 Not Modified: the client's cached copy is still current.
- 502 Bad Gateway: a server acting as a gateway or proxy got an invalid response from the server behind it.
A 4xx code from another platform usually means a credential, permission, or data problem on that platform's side. A 5xx code usually means the platform had a temporary problem.
Need Help?
If you need additional assistance:
- Use Ask Pippen, our AI agent, located at the top of the platform page.
- Submit a support request with as much relevant detail as possible. Learn how to submit a request.
We're here to help you succeed with your operations.
Comments
0 comments