Replies: 1 comment
-
|
See this example: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone 👋
I'm working on a loco.rs project and need to return a 409 Conflict HTTP response when an entity already exists. For example, I want to send:
"Entity already exists"Currently, I'm using:
But this returns a 500 Internal Server Error by default.
What is the correct or idiomatic way in loco.rs to return a 409 with a custom message?
Beta Was this translation helpful? Give feedback.
All reactions