mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 11:57:07 +02:00
malformed payload error
This commit is contained in:
parent
137272b8de
commit
ddd40d87a7
3 changed files with 14 additions and 5 deletions
|
@ -85,6 +85,7 @@ pub enum Code {
|
|||
DumpProcessFailed,
|
||||
|
||||
MissingContentType,
|
||||
MalformedPayload,
|
||||
}
|
||||
|
||||
impl Code {
|
||||
|
@ -157,6 +158,7 @@ impl Code {
|
|||
ErrCode::internal("dump_process_failed", StatusCode::INTERNAL_SERVER_ERROR)
|
||||
}
|
||||
MissingContentType => ErrCode::invalid("missing_content_type", StatusCode::UNSUPPORTED_MEDIA_TYPE),
|
||||
MalformedPayload => ErrCode::invalid("malformed_payload", StatusCode::BAD_REQUEST)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue