mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-23 02:27:40 +08:00
Merge #3321
3321: Update the system http error code to return an internal server error r=irevoire a=irevoire Fix parts of https://github.com/meilisearch/meilisearch/issues/3318 Co-authored-by: Tamo <tamo@meilisearch.com>
This commit is contained in:
commit
b3574de809
@ -248,12 +248,12 @@ impl Code {
|
|||||||
|
|
||||||
match self {
|
match self {
|
||||||
// related to the setup
|
// related to the setup
|
||||||
IoError => ErrCode::system("io_error", StatusCode::UNPROCESSABLE_ENTITY),
|
IoError => ErrCode::system("io_error", StatusCode::INTERNAL_SERVER_ERROR),
|
||||||
TooManyOpenFiles => {
|
TooManyOpenFiles => {
|
||||||
ErrCode::system("too_many_open_files", StatusCode::UNPROCESSABLE_ENTITY)
|
ErrCode::system("too_many_open_files", StatusCode::INTERNAL_SERVER_ERROR)
|
||||||
}
|
}
|
||||||
NoSpaceLeftOnDevice => {
|
NoSpaceLeftOnDevice => {
|
||||||
ErrCode::system("no_space_left_on_device", StatusCode::UNPROCESSABLE_ENTITY)
|
ErrCode::system("no_space_left_on_device", StatusCode::INTERNAL_SERVER_ERROR)
|
||||||
}
|
}
|
||||||
|
|
||||||
// index related errors
|
// index related errors
|
||||||
|
Loading…
Reference in New Issue
Block a user