Prerequisite: Complete Phase 2 so you have working requests and a known-good response for each persona.
Error response structure
Every error response contains anerrors array. Each error has a code, a title, and a detail.
Example error response
- The HTTP status code matches the table below.
- The
codematches the CDS error code exactly. - The
detailidentifies the field, header, or resource ID at fault, where the CDS says it should, without revealing sensitive information.
Quick reference
Start with these common scenarios, then work through the full list below.Error scenarios by status code
400 Bad Request
400 Bad Request
403 Forbidden
403 Forbidden
404 Not Found
404 Not Found
These errors apply when the resource ID is in the URL path.
406 Not Acceptable
406 Not Acceptable
422 Unprocessable Entity
422 Unprocessable Entity
These errors apply when the resource ID is in the request body, plus the arrangement and pagination errors.
For how your Resource Server should return
403, 404, 422, and 500 errors to Fiskil, see Errors.When every scenario returns the expected status and error code, continue to Phase 4: Consent dashboard and revocation.