Skip to content

HTTP Responses

Our APIs are RESTful. Here is an outline of common HTTP responses you might encounter while interacting with the endpoints, along with their meanings and suggested actions:

HTTP Status CodeMeaningWhat You Should Do
200 OKRequest was successful.Everything’s working. Move forward with your next operations.
201 CreatedResource was successfully created.Confirm creation. You can now interact with the new resource.
202 AcceptedRequest received, processing in progress.The request is being processed asynchronously. Wait for a completion callback or follow-up status.
204 No ContentSuccess but no content returned.No further action needed. Common after DELETE operations.
400 Bad RequestThe request is invalid (missing parameters or syntax issues).Double-check your request payload or parameters. Fix any errors in formatting or required fields.
401 UnauthorizedAuthentication failed or missing API key.Ensure the Authorization header contains your API key, the API Key is valid and you’re authenticated properly using Bearer API_KEY
403 ForbiddenYou don't have permission to access this resource.Your API key may lack the required permissions. Verify your access rights and adjust accordingly.
404 Not FoundThe endpoint or resource doesn't exist.Double-check the URL or resource ID. Ensure you're querying the right path or resource.
405 Method Not AllowedYou're using the wrong HTTP method.Confirm you’re using the correct method (GET, POST, PUT, DELETE) for the endpoint you're targeting.
409 ConflictRequest conflicts with the current resource state.This usually happens with duplicate data. Review your input to ensure there's no conflict and try again.
429 Too Many RequestsYou've hit the rate limit.Slow down your request rate or wait for the rate limit window to reset.
500 Internal Server ErrorSomething went wrong on the server side.This is on the API’s end. Retry the request after a short delay. If it keeps happening, contact the provider.
502 Bad GatewayBad response from an upstream server.Likely a temporary issue. Retry the request after a few minutes.
503 Service UnavailableServer is overloaded or under maintenance.Wait a bit and retry. If it persists, the service might be down or undergoing maintenance.
504 Gateway TimeoutServer is taking too long to respond.Timeout usually means the server is slow or unavailable. Retry after a short wait, or investigate further.
523 Origin is UnreachableCould not establish connection with Cecula API Service.Service is temporarily down (possibly on maintenance). Please try again after a while. If issue persist, contact our support.

Key Points:

  • 4xx errors are issues with your request (incorrect parameters, missing data, or lack of permissions).
  • 5xx errors mean the problem is on the server's end. In most cases, a retry or reporting the issue to the API provider is the next step.

Important

The fact that a broadcast returned 200 OK does not guarantee that everything is fine. The status code within the JSON response is your source of truth. See full list of SMS Broadcast responses.