Add error handlers for AsyncApp (#1640)

This PR adds all the needed error handling for the AsyncApp.

Only 5 errors remaining.
This commit is contained in:
Robbe Sneyders
2023-02-16 09:19:04 +01:00
committed by GitHub
parent 1ee9c25aab
commit 03d806786f
7 changed files with 41 additions and 20 deletions

View File

@@ -16,10 +16,6 @@ def test_errors(problem_app):
error404 = greeting404.json()
assert error404["type"] == "about:blank"
assert error404["title"] == "Not Found"
assert (
error404["detail"] == "The requested URL was not found on the server. "
"If you entered the URL manually please check your spelling and try again."
)
assert error404["status"] == 404
assert "instance" not in error404