Skip to main content

errors

Attribute Macro errors 

Source
#[errors]
Expand description

Declares OpenAPI error responses for a controller handler.

Use exception marker types as arguments; the attribute is documentation metadata only and leaves the item unchanged outside controller expansion.