[ 
https://issues.apache.org/jira/browse/CAMEL-20633?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claus Ibsen resolved CAMEL-20633.
---------------------------------
    Resolution: Won't Fix

no 400 is better if the verb is accepted but has malformed request

> camel-rest-dsl - Client request validation should return 405 for missing body
> -----------------------------------------------------------------------------
>
>                 Key: CAMEL-20633
>                 URL: https://issues.apache.org/jira/browse/CAMEL-20633
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core, rest
>            Reporter: Claus Ibsen
>            Priority: Minor
>             Fix For: 4.6.0
>
>
> We return 400 today, but its likely better to return 405 if body is required 
> and its missing
> 405 Method Not Allowed
> A request method is not supported for the requested resource; for example, a 
> GET request on a form that requires data to be presented via POST, or a PUT 
> request on a read-only resource.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to