when a client POST data to a server that doesn't support it, what should it return?
-
when a client POST data to a server that doesn't support it, what should it return?
a 406 error? (not acceptable) -
when a client POST data to a server that doesn't support it, what should it return?
a 406 error? (not acceptable)@hypha@cafe.mycelium.locahlo.st 405 method not allowed is for that exact case i think?
The HTTP 405 Method Not Allowed response status code indicates that the server knows the request method, but the target resource doesn't support this method.
-- https://http.cat/status/405
yes i seriously use http.cat to quickly look up status codes
-
@hypha@cafe.mycelium.locahlo.st 405 method not allowed is for that exact case i think?
The HTTP 405 Method Not Allowed response status code indicates that the server knows the request method, but the target resource doesn't support this method.
-- https://http.cat/status/405
yes i seriously use http.cat to quickly look up status codes
@Johann150 this is not a method issue but the payload not being the right type
and also using http.cat for looking up error codes -
@Johann150 this is not a method issue but the payload not being the right type
and also using http.cat for looking up error codes@hypha@cafe.mycelium.locahlo.st so you mean for example client sends XML but server only understands JSON? then i think that'd be 415 Unsupported Media Type