Made error and success responses adhere more strictly to the JSend specs