Khalid ⚡ on Nostr: Hey #rust folks, I'm trying to figure out how to handle invalid form submissions with ...
Hey #rust folks, I'm trying to figure out how to handle invalid form submissions with #rocket. There's a global catcher that returns a 422 (unprocessible entity), but I'd like to be able to handle a form post for a specific endpoint.
Published at
2024-02-19 15:02:38Event JSON
{
"id": "278f6d825a4fbd750a405b9fa23a4cc73286064d384cfa5a0ed64b83709c71b3",
"pubkey": "8473d11f1a7de76a81e7ef02e19a62a1b44382d1cece56a737e5e073b504fc85",
"created_at": 1708354958,
"kind": 1,
"tags": [
[
"t",
"rust"
],
[
"t",
"rocket"
],
[
"proxy",
"https://mastodon.social/users/khalidabuhakmeh/statuses/111958750528443091",
"activitypub"
]
],
"content": "Hey #rust folks, I'm trying to figure out how to handle invalid form submissions with #rocket. There's a global catcher that returns a 422 (unprocessible entity), but I'd like to be able to handle a form post for a specific endpoint.",
"sig": "27b48a06f07c68852d937d4f125d42769fc2b0d8175629512ae2e5d8029060b046b6fcca4e5f1fd3b8ec36a935334f556e1aa366f82524d65f9172547027c378"
}