Edit Json Response Add Error Code

edit json response in all controller..return json response with error
code