Added json error responses for errors.