---
title: GSS_ERROR
framework: GSS
role: symbol
role_heading: Macro
platforms: [iOS 5.0+, iPadOS 5.0+, Mac Catalyst 13.0+, macOS 10.14+, visionOS 1.0+]
path: gss/gss_error
---

# GSS_ERROR

A macro that masks the supplementary info out of a major status code, leaving both calling and routine error fields.

## Declaration

```occ
#define GSS_ERROR(x)
```

## Discussion

Discussion When you apply this macro to a major status code, a non-zero result indicates that an error of some kind occurred.

## See Also

### Extraction Macros

- [GSS_CALLING_ERROR](gss/gss_calling_error.md)
- [GSS_ROUTINE_ERROR](gss/gss_routine_error.md)
- [GSS_SUPPLEMENTARY_INFO](gss/gss_supplementary_info.md)
