Skip to content

fix: return clear error when Humanloop API key is missing - #5

Open
xeseing wants to merge 2 commits into
humanloop:mainfrom
xeseing:fix-missing-humanloop-key-response
Open

fix: return clear error when Humanloop API key is missing#5
xeseing wants to merge 2 commits into
humanloop:mainfrom
xeseing:fix-missing-humanloop-key-response

Conversation

@xeseing

@xeseing xeseing commented Jul 14, 2026

Copy link
Copy Markdown

Summary

Returns a clear HTTP error response when the Humanloop API key is missing instead of throwing a generic server error.

Changes

  • Replaced the thrown error for a missing HUMANLOOP_API_KEY
  • Added a 500 response with a clearer status text and message

Testing

  • Reviewed the route handler change locally
  • Verified the change only affects the missing API key path

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.

1 participant