Errors
Last updated
Last updated
Swish uses conventional to indicate the success or failure of an API request. As a general rule:
Status codes in the 2xx
range indicate success.
Status codes in the 4xx
range indicate incorrect or incomplete parameters (e.g. a required parameter was omitted).
Status codes in the 5xx
range indicate an error with Swish's servers.
Swish also outputs an error response formatted in JSON: