Success

The definition of a successful response is when you made a valid request that functioned as intended.

A successful response will return with a HTTP status code in the 200 range.

Code Type Description
200 OK A resource has been returned
201 Created A resource has been created
204 Success A resource has been removed

Each successful response will return response data, please see the documentation for specific responses.

Note that request of the type DELETE will not return any data if successful.

Failure

The definition of a failed response is when you made a invalid request that did not function as intended.

A failed response will return with a HTTP status code in the 400 or 500 range.

Code Type Description
400 Bad Request The request cannot be fulfilled due to bad syntax
403 Forbidden Failed authentication
404 Not Found The requested resource could not be found
500 Internal Server Error An error occured at our end

Errors

A failed request will return an error in the response, all errors have the same structure.

<?xml version="1.0" encoding="UTF-8"?>
<ErrorInformation>
  <Error>1</Error>
  <Message>Kan inte hitta kontot.</Message>
  <Code>2000423</Code>
</ErrorInformation>
{
  "ErrorInformation": {
    "error": 1,
    "message": "Kan inte hitta kontot.",
    "code": 2000423
  }
}