macro_rules! api_error { ($ctx:expr, $err:expr) => { ... }; }
Create an API error response from HttpError (preserves status code)