- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for something (0.17 sec)
-
docs/pt/docs/tutorial/handling-errors.md
Essa exceção será manipulada, contudo, pelo `unicorn_exception_handler`. Dessa forma você receberá um erro "limpo", com o HTTP status code `418` e um JSON com o conteúdo: ```JSON {"message": "Oops! yolo did something. There goes a rainbow..."} ``` !!! note "Detalhes Técnicos" Você também pode usar `from starlette.requests import Request` and `from starlette.responses import JSONResponse`.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 10K bytes - Viewed (0) -
docs/de/docs/tutorial/handling-errors.md
Aber diese wird von `unicorn_exception_handler` gehandhabt. Sie erhalten also einen sauberen Error mit einem Statuscode `418` und dem JSON-Inhalt: ```JSON {"message": "Oops! yolo did something. There goes a rainbow..."} ``` !!! note "Technische Details" Sie können auch `from starlette.requests import Request` und `from starlette.responses import JSONResponse` verwenden.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Mar 30 20:28:29 GMT 2024 - 10.6K bytes - Viewed (0) -
docs/ru/docs/tutorial/handling-errors.md
Но оно будет обработано `unicorn_exception_handler`. Таким образом, вы получите чистую ошибку с кодом состояния HTTP `418` и содержимым JSON: ```JSON {"message": "Oops! yolo did something. There goes a rainbow..."} ``` !!! note "Технические детали" Также можно использовать `from starlette.requests import Request` и `from starlette.responses import JSONResponse`.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 14.5K bytes - Viewed (0) -
docs/ja/docs/tutorial/handling-errors.md
ここで、`/unicorns/yolo`をリクエストすると、*path operation*は`UnicornException`を`raise`します。 しかし、これは`unicorn_exception_handler`で処理されます。 そのため、HTTPステータスコードが`418`で、JSONの内容が以下のような明確なエラーを受け取ることになります: ```JSON {"message": "Oops! yolo did something. There goes a rainbow..."} ``` !!! note "技術詳細" また、`from starlette.requests import Request`と`from starlette.responses import JSONResponse`を使用することもできます。
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 11.8K bytes - Viewed (0)