Errors

Handles errors in API Platform — RFC 7807 Problem Details responses, mapping exceptions to HTTP status (exception_to_status, per-operation exceptionToStatus), #[ErrorResource] domain error resources, the 422 validation violations shape, and safely exposing/hiding exception messages. Use when the user mentions error responses, problem+json, HTTP status codes for exceptions, custom error formats, domain exceptions from a provider/processor, 404/409/422 mapping, validation error output, or leaking internal error messages.

api-platform e494995 8.8 KB Updated

File contents

api-platform/skillset/tree/main/skills/errors commit e49499522e

Frequently asked questions

npx skillmds@latest add api-platform/errors