Raise a proper exception for 422