Carlton Gibson 🇪🇺 on Nostr: I get it, writing APIs is hard. But, "in general we'll errors as distinct responses ...
I get it, writing APIs is hard.
But, "in general we'll errors as distinct responses but for THIS error we're going give you a 200 OK, but with the error in the response body" is a particularly annoying choice.
Published at
2024-06-18 12:52:21Event JSON
{
"id": "1a2935e7f24468ff20f1d8e7cfb38702a661e28e94ed58c6e38863193d310b27",
"pubkey": "c7b7d3af35e79d3da746bbcd576abc0dda9091f93bc5ea2a5b7a99ad9dbf8a01",
"created_at": 1718715141,
"kind": 1,
"tags": [
[
"proxy",
"https://fosstodon.org/users/carlton/statuses/112637715507420253",
"activitypub"
]
],
"content": "I get it, writing APIs is hard. \n\nBut, \"in general we'll errors as distinct responses but for THIS error we're going give you a 200 OK, but with the error in the response body\" is a particularly annoying choice.",
"sig": "1fea2b2400e2a482a9a96387788b9c42866357fc1d473227ff0da617e89bbd2ac6be7311c10152e1cc02a26187f82107b62cba7e9f6dfcda038992263a92b9ad"
}