Return the status and error, if applicable