Return an error if user doesn't provide a body with the POST request which
require it.

Previously, internal server error was thrown.