add unsupported media type response
This commit is contained in:
parent
305818ae4a
commit
86b03e6985
2 changed files with 26 additions and 21 deletions
|
|
@ -16,6 +16,7 @@ let bad_request () = empty `Bad_request
|
|||
let no_content () = empty `No_content
|
||||
let not_modified () = empty `Not_modified
|
||||
let not_implemented () = empty `Not_implemented
|
||||
let unsupported_media_type () = empty `Unsupported_media_type
|
||||
|
||||
let respond_json req jsont status body =
|
||||
Logs.info (fun m -> m "%a" pp_status status);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue