Fix InternalServerError docs to match current behavior (#3640)

Signed-off-by: Antonio Souza <[email protected]>
This commit is contained in:
Antonio Souza
2026-03-25 09:47:35 +01:00
committed by Yann Simon
parent 0e961504c2
commit 833cb40694
+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;