devicehive-java-server icon indicating copy to clipboard operation
devicehive-java-server copied to clipboard

The API should return HTTP 400 on PUT call with no request body.

Open vyrostkov opened this issue 11 years ago • 1 comments

Currently the API return HTTP 204 No Content, however PUT requests with no request body do not make any sense, and typically erroneous. It's suggested to return HTTP 400 Bad Request to notify the caller about missing request body,

vyrostkov avatar Jan 04 '15 17:01 vyrostkov

Could you provide endpoints with such an issue by any chance?

vikua avatar Jun 30 '15 09:06 vikua