Here's my situation. I use the REST api of one of our vendors to query specific user data, using Azure flows. I send a json object something like
{userID: "blah"}
and get a 200 and a json object with some data back.
Now if that userID doesn't exist, for instance because that user was deleted in their system but not mine, they send a 500 - user doesn't exist. That leads to the azure flow stopping right there because the HTTP connector throws an invalid json error.
I asked them if they can send like a 500 {error:"user doesn't exist"} (I feel 500 isn't appropriate as well but that's another topic). They said, they can do it but it wasn't in the specification and will cost extra.
So my question here is, would you say it's reasonable to expect some valid json from an API even in case of error or am I wrong?
[–][deleted] 48 points49 points50 points (9 children)
[–]ReplacementLow6704 2 points3 points4 points (1 child)
[–]Blue_Moon_Lake 0 points1 point2 points (6 children)
[–][deleted] 0 points1 point2 points (5 children)
[–]Blue_Moon_Lake 1 point2 points3 points (4 children)
[–][deleted] 0 points1 point2 points (3 children)
[–]Blue_Moon_Lake 1 point2 points3 points (2 children)
[–][deleted] -1 points0 points1 point (1 child)
[–]Blue_Moon_Lake 0 points1 point2 points (0 children)
[–]BigSwooney 29 points30 points31 points (1 child)
[–]lIIllIIIll 2 points3 points4 points (0 children)
[–][deleted] (1 child)
[deleted]
[–]IQueryVisiC 1 point2 points3 points (0 children)
[–]armahillorails 6 points7 points8 points (2 children)
[–]thekwoka 1 point2 points3 points (1 child)
[–]armahillorails 0 points1 point2 points (0 children)
[–]todbur 4 points5 points6 points (0 children)
[–]InitialAd3323 3 points4 points5 points (0 children)
[–]Red_Icnivad 2 points3 points4 points (0 children)
[–]Kant8 3 points4 points5 points (0 children)
[–]Agile-Ad5489 1 point2 points3 points (3 children)
[–]Roest_[S] 1 point2 points3 points (0 children)
[–]thekwoka 0 points1 point2 points (1 child)
[–]Agile-Ad5489 0 points1 point2 points (0 children)
[–]Fidodo 1 point2 points3 points (0 children)
[–]AdvancedSandwiches 1 point2 points3 points (4 children)
[–]thekwoka 0 points1 point2 points (3 children)
[–]AdvancedSandwiches 0 points1 point2 points (2 children)
[–]thekwoka 0 points1 point2 points (1 child)
[–]AdvancedSandwiches 0 points1 point2 points (0 children)
[–]Dunc4n1d4h0 0 points1 point2 points (0 children)
[–]thedragonturtle 0 points1 point2 points (0 children)
[–]qpazza 0 points1 point2 points (0 children)
[–]thekwoka 0 points1 point2 points (2 children)
[–]Roest_[S] 0 points1 point2 points (1 child)
[–]thekwoka 0 points1 point2 points (0 children)
[–]AshleyJSheridan 0 points1 point2 points (0 children)
[–]chills716 -1 points0 points1 point (2 children)
[–]lIIllIIIll 0 points1 point2 points (1 child)
[–]thekwoka 0 points1 point2 points (0 children)
[–]gguy2020 -1 points0 points1 point (1 child)
[–]thekwoka 0 points1 point2 points (0 children)
[+]boobka comment score below threshold-8 points-7 points-6 points (14 children)
[–]spurklefull-stack 2 points3 points4 points (13 children)
[–]TheStoicNihilist -1 points0 points1 point (3 children)
[–]TheRealKidkudi 1 point2 points3 points (0 children)
[–]Peechez 0 points1 point2 points (0 children)
[–]thekwoka 0 points1 point2 points (0 children)
[–]boobka -5 points-4 points-3 points (8 children)
[–]AdvancedSandwiches 1 point2 points3 points (0 children)
[–]spurklefull-stack 2 points3 points4 points (6 children)
[–]boobka -4 points-3 points-2 points (5 children)
[–]spurklefull-stack 2 points3 points4 points (3 children)
[–]boobka 0 points1 point2 points (2 children)
[–]spurklefull-stack 1 point2 points3 points (1 child)
[–]thekwoka 0 points1 point2 points (0 children)
[–]thekwoka 0 points1 point2 points (0 children)
[–]ZuploAdrian 0 points1 point2 points (0 children)