Skip to content
This repository has been archived by the owner on Apr 22, 2024. It is now read-only.

Method to handle HTTPExceptions #1087

Merged
merged 2 commits into from Jul 9, 2020
Merged

Conversation

ajoaoff
Copy link
Contributor

@ajoaoff ajoaoff commented Jul 6, 2020

New method to handle HTTPException now return a JSON with
error code, name and description. Now NApps can simple raise a
HTTPException setting a description to return in case of error.
Fix #1086.

New method to handle HTTPException now return a JSON with
error code, name and description. Now NApps can simple raise a
HTTPException setting a description to return in case of error.
@ajoaoff ajoaoff requested review from a team, cmagnobarbosa and josemauro and removed request for a team July 6, 2020 13:19
Variable e changed to exception
@hdiogenes hdiogenes added this to the 2020.1 milestone Jul 9, 2020
@hdiogenes hdiogenes merged commit 858c500 into kytos:master Jul 9, 2020
@ajoaoff ajoaoff deleted the 1086_error_handler branch July 9, 2020 21:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use Flask's error handler with HTTP errors
4 participants