mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 20:07:09 +02:00
empty content type error
This commit is contained in:
parent
e400ae900d
commit
137272b8de
3 changed files with 24 additions and 3 deletions
|
@ -83,6 +83,8 @@ pub enum Code {
|
|||
|
||||
DumpAlreadyInProgress,
|
||||
DumpProcessFailed,
|
||||
|
||||
MissingContentType,
|
||||
}
|
||||
|
||||
impl Code {
|
||||
|
@ -154,6 +156,7 @@ impl Code {
|
|||
DumpProcessFailed => {
|
||||
ErrCode::internal("dump_process_failed", StatusCode::INTERNAL_SERVER_ERROR)
|
||||
}
|
||||
MissingContentType => ErrCode::invalid("missing_content_type", StatusCode::UNSUPPORTED_MEDIA_TYPE),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue