Closed basti394 closed 1 year ago
When I request any endpoint (in this example /login/verify) and endpoint returns error code, please provide it on root, instead of 500.
Example:
{ "status": 500, "message": "Internal server error", "data": { "response": { "status": 400, "message": "OTP not verified", "data": { "error": { "code": 400, "message": "SESSION_EXPIRED", "errors": [ { "message": "SESSION_EXPIRED", "domain": "global", "reason": "invalid" } ] } } }, "status": 400, "message": "OTP not verified", "name": "HttpException" } }
Please put 400 instead of 500 :)
This is because the code when throws a 500 http code writes in data the response of the befake module, I will change that !
Solved in the last commit
When I request any endpoint (in this example /login/verify) and endpoint returns error code, please provide it on root, instead of 500.
Example:
Please put 400 instead of 500 :)