{"comment":{"url":"https://api.github.com/repos/aws/aws-sdk-php/comments/9560236","html_url":"https://github.com/aws/aws-sdk-php/commit/c0177ccf9b5fa8b727d97a5116bf0676ce3850fb#commitcomment-9560236","id":9560236,"user":{"login":"aszeremi-workangel","id":10596856,"avatar_url":"https://avatars.githubusercontent.com/u/10596856?v=3","gravatar_id":"","url":"https://api.github.com/users/aszeremi-workangel","html_url":"https://github.com/aszeremi-workangel","followers_url":"https://api.github.com/users/aszeremi-workangel/followers","following_url":"https://api.github.com/users/aszeremi-workangel/following{/other_user}","gists_url":"https://api.github.com/users/aszeremi-workangel/gists{/gist_id}","starred_url":"https://api.github.com/users/aszeremi-workangel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aszeremi-workangel/subscriptions","organizations_url":"https://api.github.com/users/aszeremi-workangel/orgs","repos_url":"https://api.github.com/users/aszeremi-workangel/repos","events_url":"https://api.github.com/users/aszeremi-workangel/events{/privacy}","received_events_url":"https://api.github.com/users/aszeremi-workangel/received_events","type":"User","site_admin":false},"position":null,"line":null,"path":"","commit_id":"c0177ccf9b5fa8b727d97a5116bf0676ce3850fb","created_at":"2015-02-03T11:30:42Z","updated_at":"2015-02-03T11:30:42Z","body":"How do these errorResponses work? You're giving very wordy \"reasons\" (e.g. \"Unable to perform the specified operation because the user does not have enough privileges for one of more downstream aws services\") whereas in the Guzzle documentation, the value of \"reason\" is matched against the HTTP reason (e.g. for 404 it's normally \"Not Found\").\r\nSo how are you able to define custom Exceptions per different error with the \"reason\" property?"}}