Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support failure handling with Axum #27

Open
ChetanBhasin opened this issue Nov 28, 2024 · 1 comment
Open

Support failure handling with Axum #27

ChetanBhasin opened this issue Nov 28, 2024 · 1 comment

Comments

@ChetanBhasin
Copy link

Currently if your axum handler returns a Json<T>, that's perfectly fine, but Axum also supports returning Result<Json<T>>, in which case we fail.
I was wondering if there is a way to support that.

I'd be happy to help out.

@kurtbuilds
Copy link
Owner

No support currently, but definitely a welcome feature.

I think the main difficulty is knowing what errors correspond to what error codes.

If you have a proposal, or you want to share more about your use case, happy to workshop it with you and accept any PRs for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants