refactored default_error_status