diff --git a/notice/api/2.2.md b/notice/api/2.2.md index 8baceab..48d8b57 100644 --- a/notice/api/2.2.md +++ b/notice/api/2.2.md @@ -193,11 +193,8 @@ In order to setup an automatic bound from HTTP requests to API directly, you mus // create request from HTTP data $request = Request::remote($url); - // manage request error - if( $request->error->get() !== Err::Success ) - die('request error'); - // execute request and catch response + // note that request errors will propagate through response $response = $request->dispatch(); // return response as HTTP body