As a consumer API, I want to Error management So that I show an error to a final user.
Status | In progress |
---|---|
Checked |
Acceptance criteria
- Docs
- Refactor errors
- Follow HTTP standard
The error messages that the API should return in response to a call to this method.
Error Type | Error detail | Description | Cases |
---|---|---|---|
forbidden (403) | forbidden | Api key 'pT32raieZC3' not found | 'pT32raieZC3', '', '3fafafa' |
notFound (404) | curpNotFound | Return a object Null. | 'TOJO81020503H5005' |
badRequest (401) | badCURPFormat | 'TOJO81020503H500' is a invalid curp | |
internalError (500) | internalError |