{"action":"created","issue":{"url":"https://api.github.com/repos/php-curl-class/php-curl-class/issues/199","labels_url":"https://api.github.com/repos/php-curl-class/php-curl-class/issues/199/labels{/name}","comments_url":"https://api.github.com/repos/php-curl-class/php-curl-class/issues/199/comments","events_url":"https://api.github.com/repos/php-curl-class/php-curl-class/issues/199/events","html_url":"https://github.com/php-curl-class/php-curl-class/issues/199","id":84976489,"number":199,"title":"problem with mix up of curl and http errors","user":{"login":"lhwparis","id":202614,"avatar_url":"https://avatars.githubusercontent.com/u/202614?v=3","gravatar_id":"","url":"https://api.github.com/users/lhwparis","html_url":"https://github.com/lhwparis","followers_url":"https://api.github.com/users/lhwparis/followers","following_url":"https://api.github.com/users/lhwparis/following{/other_user}","gists_url":"https://api.github.com/users/lhwparis/gists{/gist_id}","starred_url":"https://api.github.com/users/lhwparis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lhwparis/subscriptions","organizations_url":"https://api.github.com/users/lhwparis/orgs","repos_url":"https://api.github.com/users/lhwparis/repos","events_url":"https://api.github.com/users/lhwparis/events{/privacy}","received_events_url":"https://api.github.com/users/lhwparis/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/php-curl-class/php-curl-class/labels/Needs%20More%20Info","name":"Needs More Info","color":"f7c6c7"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-04T08:14:03Z","updated_at":"2015-07-31T07:34:26Z","closed_at":"2015-07-31T07:34:26Z","body":"I switched to your curl class and really like it Thanks :)\r\nOne problem i found was that You mix up curl and http errors. Normal behavior of curl is to respond with curl error code 0 even on http Status 404 or 500 but your class answers with the http Status Code (400, 500) in The curl error code. Do You dont think This is missleading cause these codes are http status codes and not curl error codes?"},"comment":{"url":"https://api.github.com/repos/php-curl-class/php-curl-class/issues/comments/126592955","html_url":"https://github.com/php-curl-class/php-curl-class/issues/199#issuecomment-126592955","issue_url":"https://api.github.com/repos/php-curl-class/php-curl-class/issues/199","id":126592955,"user":{"login":"zachborboa","id":1083146,"avatar_url":"https://avatars.githubusercontent.com/u/1083146?v=3","gravatar_id":"","url":"https://api.github.com/users/zachborboa","html_url":"https://github.com/zachborboa","followers_url":"https://api.github.com/users/zachborboa/followers","following_url":"https://api.github.com/users/zachborboa/following{/other_user}","gists_url":"https://api.github.com/users/zachborboa/gists{/gist_id}","starred_url":"https://api.github.com/users/zachborboa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zachborboa/subscriptions","organizations_url":"https://api.github.com/users/zachborboa/orgs","repos_url":"https://api.github.com/users/zachborboa/repos","events_url":"https://api.github.com/users/zachborboa/events{/privacy}","received_events_url":"https://api.github.com/users/zachborboa/received_events","type":"User","site_admin":false},"created_at":"2015-07-31T07:34:26Z","updated_at":"2015-07-31T07:34:26Z","body":"`curl_error_code` has been renamed to `curlErrorCode`.\r\n`http_status_code ` has been renamed to `httpStatusCode`.\r\n\r\n```php\r\nif ($curlError) {\r\n    echo 'Curl error: ' . $curlErrorCode . \"\\n\";\r\n} else if ($httpError) {\r\n    echo 'Http error: ' . $httpError . \"\\n\";\r\n}\r\n```"}}