Missing "Status" in response header #24316
-
According to the documentation on Resources in the REST API - GitHub Docs, this what a response should look like:
However, since last week, the status field seems to be missing:
|
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
I can see what you mean in the docs, but in those examples the |
Beta Was this translation helpful? Give feedback.
-
Thank you for your answer! Sadly it’s not under my control. |
Beta Was this translation helpful? Give feedback.
-
Ah, I see! I don’t know if the change was intentional from Github, so I can’t say if the header might be added back. I think reporting a bug against that external library would be good either way. |
Beta Was this translation helpful? Give feedback.
-
Hi @thulin82 👋 This is a change from our (GitHub’s) side where the The workaround is to use the HTTP status itself, rather than the As for the documentation, thank you for flagging the inconsistency there. We’ll be updating the docs to reflect the recent changes. |
Beta Was this translation helpful? Give feedback.
-
Hi @imwiss Thank you for a really great answer! Even though it’s not a solution, we now know why it stopped working, and we’ve been able to solve it. |
Beta Was this translation helpful? Give feedback.
Hi @thulin82 👋 This is a change from our (GitHub’s) side where the
status
header is no longer being returned as of very recently. Thestatus
header was previously included by the rack server we use and the newer version has removed it. The infrastructure team confirmed that we won’t be able to roll this back and restore the header unfortunately.The workaround is to use the HTTP status itself, rather than the
status
header. Apologies if this caused downtime for you, this was an unfortunate side effect on the upgrade and not how we would usually announce breaking changes. I’ve noticed some libraries making the required changes for this. Is this a feasible approach for the library that you’…