Remove ErrorResponse since the error can be found in other response object type