I was playing with the api while writing gobalt, and i saw that the api returns html code if the url provided is invalid, shown on the screenshot below:
I believe this shouldn't happen, and the api should return only regular text on the text response body.
Originally created by @lostdusty on GitHub (Jan 1, 2024).
Original GitHub issue: https://github.com/imputnet/cobalt/issues/298
I was playing with the api while writing [gobalt](https://github.com/princessmortix/gobalt), and i saw that the api returns html code if the url provided is invalid, shown on the screenshot below:

<!-- guess who forgot how markdown works -->
I believe this shouldn't happen, and the api should return only regular text on the text response body.
@carpaltunnelsurgery commented on GitHub (Jan 6, 2024):
it seems as though that is what defines what the cobalt website returns, the api should ideally send an error code and the website shows whatever information should be shown
<!-- gh-comment-id:1879638858 -->
@carpaltunnelsurgery commented on GitHub (Jan 6, 2024):
it seems as though that is what defines what the cobalt website returns, the api should ideally send an error code and the website shows whatever information should be shown

Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @lostdusty on GitHub (Jan 1, 2024).
Original GitHub issue: https://github.com/imputnet/cobalt/issues/298
I was playing with the api while writing gobalt, and i saw that the api returns html code if the url provided is invalid, shown on the screenshot below:

I believe this shouldn't happen, and the api should return only regular text on the text response body.
@carpaltunnelsurgery commented on GitHub (Jan 6, 2024):
it seems as though that is what defines what the cobalt website returns, the api should ideally send an error code and the website shows whatever information should be shown