function response($url, $body) { if ($body === null) { return new Auth_Yadis_HTTPResponse($url, 404, array(), 'Not found'); } else { return new Auth_Yadis_HTTPResponse($url, 200, array(), $body); } }