Status Codes
403 — Forbidden
Returned when Fiskil is not allowed to access the requested data. Examples:- Authentication failed between Fiskil and your Resource Server.
- The data request could cause physical or financial harm to an entity.
404 — Not Found
Returned when the resource ID in the request path does not exist for the customer. Example:not-a-real-account is not linked to the given customer, return 404.
Also return 404 when the requested resource is associated with a blocked or suspended account.
In this case, set the X-Sharing-Refused header as described above.
422 — Unprocessable Entity
Returned when the resource ID in the request body does not exist for the customer. Example:X-Sharing-Refused header set.
500 — Internal Server Error
Returned for unexpected exceptions in your Resource Server. Examples:- Database connection loss
- Unhandled runtime error
Summary
- Use 403, 404, 422, 500 consistently.
- Include the
X-Sharing-Refusedheader where refusal is required to capture these events for CDR reporting. - Return errors in the standard JSON format.