A third option is to add an API and data on the HTTP state machine to store the error code. This has the issue that it's harder to have multiple conditions active. On the other hand it's not overloading some other mechanism and would be faster (by comparing number values instead of strings).
- Reporting internal state and errors to plugins Alan M. Carroll
- Re: Reporting internal state and errors to plugins Alan Carroll
- RE: Reporting internal state and errors to plug... Bardwell, William
- Re: Reporting internal state and errors to plug... Leif Hedstrom