Improving Error Handling & Logging
ankushgarg1998 opened this issue · comments
2xx RESPONSE
- Encryption Enabled
{ res: encryptedResponse }
- Encryption Disabled
{ res : actualControllerResponse }
<caching the entire object { res: x/Y }
>
ANY OTHER RESPONSE
- No Encryption
- No Caching
- Standard ErrorResponse Object
{code: '', message: '', reason: '', ... }
LOGS
- Logging library
- INFO, WARN & ERROR level logs