Errors

The SWYCO API employs standard HTTP response codes to communicate the outcome of requests. Usually:

  • A 2xx code signals success

  • A 4xx code signals a failure due to missing or invalid information supplied by the client (e.g. missing required parameter)

  • A 5xx code suggests a server-side error at SWYCO API, which are uncommon.

Additionally, certain 4xx errors can be handled programmatically through an error code that briefly describes the issue.

Last updated