Handles unexpected error codes.