mirror of
https://git.asonix.dog/asonix/relay.git
synced 2024-11-22 01:21:06 +00:00
Consider NoSignature a BadRequest
This commit is contained in:
parent
b56bddccb4
commit
cf7a25f935
1 changed files with 1 additions and 1 deletions
|
@ -197,7 +197,7 @@ impl ResponseError for Error {
|
||||||
ErrorKind::Kind(_)
|
ErrorKind::Kind(_)
|
||||||
| ErrorKind::MissingKind
|
| ErrorKind::MissingKind
|
||||||
| ErrorKind::MissingId
|
| ErrorKind::MissingId
|
||||||
| ErrorKind::ObjectCount => StatusCode::BAD_REQUEST,
|
| ErrorKind::ObjectCount | ErrorKind::NoSignature(_) => StatusCode::BAD_REQUEST,
|
||||||
_ => StatusCode::INTERNAL_SERVER_ERROR,
|
_ => StatusCode::INTERNAL_SERVER_ERROR,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue