{"action":"closed","issue":{"url":"https://api.github.com/repos/cakephp/cakephp/issues/5788","labels_url":"https://api.github.com/repos/cakephp/cakephp/issues/5788/labels{/name}","comments_url":"https://api.github.com/repos/cakephp/cakephp/issues/5788/comments","events_url":"https://api.github.com/repos/cakephp/cakephp/issues/5788/events","html_url":"https://github.com/cakephp/cakephp/issues/5788","id":55979600,"number":5788,"title":"3.0 - Add 'status' to Exception Response for REST APIs","user":{"login":"DSchalla","id":5972329,"avatar_url":"https://avatars.githubusercontent.com/u/5972329?v=3","gravatar_id":"","url":"https://api.github.com/users/DSchalla","html_url":"https://github.com/DSchalla","followers_url":"https://api.github.com/users/DSchalla/followers","following_url":"https://api.github.com/users/DSchalla/following{/other_user}","gists_url":"https://api.github.com/users/DSchalla/gists{/gist_id}","starred_url":"https://api.github.com/users/DSchalla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DSchalla/subscriptions","organizations_url":"https://api.github.com/users/DSchalla/orgs","repos_url":"https://api.github.com/users/DSchalla/repos","events_url":"https://api.github.com/users/DSchalla/events{/privacy}","received_events_url":"https://api.github.com/users/DSchalla/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cakephp/cakephp/labels/Enhancement","name":"Enhancement","color":"bfe5bf"},{"url":"https://api.github.com/repos/cakephp/cakephp/labels/RFC","name":"RFC","color":"c7def8"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/cakephp/cakephp/milestones/7","labels_url":"https://api.github.com/repos/cakephp/cakephp/milestones/7/labels","id":453043,"number":7,"title":"3.0.0","description":"New major release that breaks compatibility with 2.x\r\n\r\n- PHP5.4.19+\r\n- New ORM & behaviors.\r\n- Improved Routing\r\n- PSR-0 and composer support.\r\n- Simpler configuration and bootstrapping.\r\n- Improved configuration handling.\r\n- Improved bake.\r\n\r\nSee [the roadmap](http://github.com/cakephp/cakephp/wiki/3.0-roadmap) for more details.","creator":{"login":"lh-import","id":5175817,"avatar_url":"https://avatars.githubusercontent.com/u/5175817?v=3","gravatar_id":"","url":"https://api.github.com/users/lh-import","html_url":"https://github.com/lh-import","followers_url":"https://api.github.com/users/lh-import/followers","following_url":"https://api.github.com/users/lh-import/following{/other_user}","gists_url":"https://api.github.com/users/lh-import/gists{/gist_id}","starred_url":"https://api.github.com/users/lh-import/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lh-import/subscriptions","organizations_url":"https://api.github.com/users/lh-import/orgs","repos_url":"https://api.github.com/users/lh-import/repos","events_url":"https://api.github.com/users/lh-import/events{/privacy}","received_events_url":"https://api.github.com/users/lh-import/received_events","type":"User","site_admin":false},"open_issues":20,"closed_issues":2232,"state":"open","created_at":"2013-10-11T20:56:23Z","updated_at":"2015-01-30T14:06:25Z","due_on":null,"closed_at":null},"comments":10,"created_at":"2015-01-30T00:42:54Z","updated_at":"2015-01-30T14:06:25Z","closed_at":"2015-01-30T14:06:25Z","body":"When working the first time with JSON and Cake, I took a look at the behavior on exceptions etc. While it throws an message and a code, it doesn't provide a 'status' field in the response.\r\n\r\nSince it is quite common in public APIs and some specifications[1] to provide the status field like 'status: error', 'status: success' , .. it might make sense to add this as default parameter to the ExceptionRendered, if nothing speaks against it. I wanted to get some feedback if I am overseeing a problem/issue with it, when nobody sees an issue with it I would ofc volunteer to make the biggest PR of 1 1/2 Lines. :D\r\n\r\n[1] http://labs.omniti.com/labs/jsend"}}