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.
$npx -y skills add api-platform/skillset --skill errorsInstalls into the current project.
Run `npx skills use "https://github.com/api-platform/skillset" --skill "api-platform/skillset/errors"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/api-platform/skillset" that are relevant to the current task. Run `npx skills add "https://github.com/api-platform/skillset"` and select the relevant skills, then follow their instructions.