mirror of
https://github.com/actix/actix-extras.git
synced 2025-07-31 07:23:57 +02:00
a50f1db473c469ef1210fd7e35034c09ab807c97
I noticed that my `AuthenticationError`'s `status_code` field was 401, but when I ran `.as_response_error()` the `ResponseError`'s code was 500 (the default value). It's because impl ResponseError for AuthenticationError doesn't define the `status_code()` trait method. Merely setting the status code in `error_response` isn't enough, it seems. I added a unit test for this case too.
actix-extras
A collection of additional crates supporting the actix and actix-web frameworks.
Crates
Crate | ||
---|---|---|
actix-cors | Cross-origin resource sharing (CORS) for actix-web applications. | |
actix-identity | Identity service for actix-web framework. | |
actix-protobuf | Protobuf support for actix-web framework. | |
actix-redis | Redis integration for actix framework. | |
actix-session | Session for actix-web framework. | |
actix-web-httpauth | HTTP authentication schemes for actix-web. |
Description
Languages
Rust
98.5%
Just
1%
HTML
0.5%