Pass only response param to api_error method