Error codes

Every error has an HTTP status, a stable code, a human message and the request id in the x-request-id header.