Use Yggdrasil error response when available, or fall back to legacy HTTP error codes