Return an error response given invalid attributes