add error and success status