mirror of
https://github.com/actix/actix-web.git
synced 2025-03-30 14:49:35 +00:00
Correct docstring
This commit is contained in:
parent
fce8dd275a
commit
2a9b57f489
1 changed files with 4 additions and 1 deletions
|
@ -293,7 +293,10 @@ impl From<IoError> for PayloadError {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// `InternalServerError` for `PayloadError`
|
/// `PayloadError` returns two possible results:
|
||||||
|
///
|
||||||
|
/// - `Overflow` returns `PayloadTooLarge`
|
||||||
|
/// - Other errors returns `BadRequest`
|
||||||
impl ResponseError for PayloadError {
|
impl ResponseError for PayloadError {
|
||||||
fn error_response(&self) -> HttpResponse {
|
fn error_response(&self) -> HttpResponse {
|
||||||
match *self {
|
match *self {
|
||||||
|
|
Loading…
Reference in a new issue