0

There are resources in REST API that can be singular in nature. e.g. a scheduled reboot job.

When no such reboot job is scheduled, what should GET https://.../scheduled-reboot returns?

Should it return 404, or it should return 200 but with empty body?

I feed like 404 is not a good solution as "no scheduled reboot" is an expected outcome of the call, instead of an "error"

unional
  • 169
  • 1
  • 9

0 Answers0