As a consumer API, I want to Error management So that I show an error to a final user.

StatusIn progress
Checked

Acceptance criteria

The error messages that the API should return in response to a call to this method.

Error TypeError detailDescriptionCases
forbidden (403)forbiddenApi key 'pT32raieZC3' not found'pT32raieZC3', '', '3fafafa'
notFound (404)curpNotFoundReturn a object Null.'TOJO81020503H5005'
badRequest (401)badCURPFormat'TOJO81020503H500' is a invalid curp
internalError (500)internalError