added status and error to response