You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to have full control of the response from error handlers assigned using @api.errorhandler decorator so I can obfuscate the return of calls for some usecases.
I would like to have full control of the response from error handlers assigned using
@api.errorhandler
decorator so I can obfuscate the return of calls for some usecases.For example:
However, the code assumes full control of the response assuming that a dict is returned.
The change is quite simple. In Api.py after
result = handler(e)
:The text was updated successfully, but these errors were encountered: