add unsupported media type response

This commit is contained in:
swrup 2026-04-12 20:15:08 +02:00 committed by Swrup
parent 305818ae4a
commit 86b03e6985
2 changed files with 26 additions and 21 deletions

View file

@ -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);