http-rs / http-rs/http-types

*_status macros only take numeric status codes

Open
#337 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Rust
Stars
209
Forks
91
PR merge metrics
No merged PRs in 30d

Description

The `_status` macros, e.g. `format_err_status`, only take literals as the status code argument, and prevent an idiomatic usage:
```rust
format_err_status!(
StatusCode::InternalServerError,
"Error: {}",
error_data
)
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.