200 with error sounds wrong. If the given input is invalid, the server should respond with a 4xx client error response code, no?