> People rarely assume there’s an API contract in error messages
But then what's the point of an API contract if it's not describing the returned data? What I'm arguing is the opinionated payload provides a lot of the same value. Or am I missing something?
The monitoring systems would naturally not be stoked to see 2xx codes containing errors, but I'd just ping the monitoring system out of my application server anyways. Not sure if that's better or worse though.
I've done like little to no platform engineering and I may be gravely underestimating the consequences of doing this, but it works well with prometheus.
Perhaps I am a fool though :) but how else would I find out if I didn't put my ideas out there :D
But then what's the point of an API contract if it's not describing the returned data? What I'm arguing is the opinionated payload provides a lot of the same value. Or am I missing something?
The monitoring systems would naturally not be stoked to see 2xx codes containing errors, but I'd just ping the monitoring system out of my application server anyways. Not sure if that's better or worse though.
I've done like little to no platform engineering and I may be gravely underestimating the consequences of doing this, but it works well with prometheus.
Perhaps I am a fool though :) but how else would I find out if I didn't put my ideas out there :D