Skip to content

Handling errors

L. Le Meur edited this page Dec 16, 2016 · 1 revision

The following is specified in the License Status Document specification, and it is implemented to the License Server API implementation.

To provide a consistent behavior for both clients and end users, all servers must handle errors using the Problem Details JSON object as defined in [RFC7807] with the following additional requirements:

The server MUST return a title and a type in the Problem Details JSON object The server SHOULD attempt to localize both title and detail based on the Accept-Language header sent by the client

Example of JSON Problem detail:

HTTP/1.1 400 Bad Request
Content-Type: application/problem+json
Content-Language: en

{
"type": "https://example.net/validation-error",
"title": "Missing device id or name"
}