Skip to content

Fix: Always return HTTP 200 to display error cards in README (#860)#871

Merged
DenverCoder1 merged 3 commits intoDenverCoder1:mainfrom
victorjudysen:main
Feb 5, 2026
Merged

Fix: Always return HTTP 200 to display error cards in README (#860)#871
DenverCoder1 merged 3 commits intoDenverCoder1:mainfrom
victorjudysen:main

Conversation

@victorjudysen
Copy link
Copy Markdown
Contributor

Description

When errors occur (user not found, API rate limit, missing token, etc.), the application returns HTTP 4xx/5xx status codes. GitHub's image proxy (Camo) rejects images with non-200 status codes, causing streak stats to display as broken images in READMEs instead of showing the error card.

This fix modifies renderOutput() to always return HTTP 200, ensuring error cards are properly displayed. The original error code is preserved in JSON responses for API consumers.

Fixes #860

Type of change

  • Bug fix (added a non-breaking change which fixes an issue)

@DenverCoder1
Copy link
Copy Markdown
Owner

Thanks for looking into it!

@DenverCoder1 DenverCoder1 merged commit 10dd57d into DenverCoder1:main Feb 5, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Streak Not Showing up in the Readme.md

2 participants