Array of errors instead of an object when making a bad request