Fix InternalServerError docs to match current behavior (#3640)

Signed-off-by: Antonio Souza <[email protected]>
This commit is contained in:
Antonio Souza
2026-04-03 08:49:48 +02:00
committed by Alice Ryhl
parent 417dc25280
commit 2773966059
+3 -3
View File
@@ -6,9 +6,9 @@ use tracing::error;
/// Convenience response to create an error response from a non-[`IntoResponse`] error
///
/// This provides a method to quickly respond with an error that does not implement
/// the `IntoResponse` trait itself. This type should only be used for debugging purposes or internal
/// facing applications, as it includes the full error chain with descriptions,
/// thus leaking information that could possibly be sensitive.
/// the `IntoResponse` trait itself. Error details are logged using [`tracing::error!`]
/// and a generic `500 Internal Server Error` response is returned to the client without
/// exposing error details.
///
/// ```rust
/// use axum_extra::response::InternalServerError;