# Error code 500 and health check

**URL:** <https://community.openai.com/t/error-code-500-and-health-check/696299>\
**Category:** API\
**Created:** [March 25, 2024, 6:06am UTC](https://community.openai.com/t/error-code-500-and-health-check/696299 "2024-03-25T06:06:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![minchan159](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/minchan159/32/194240_2.png) [@minchan159](https://community.openai.com/u/minchan159)\
**Post date:** [March 25, 2024, 6:06am UTC](https://community.openai.com/t/error-code-500-and-health-check/696299/1 "2024-03-25T06:06:42Z")

</div>

hello guys. I have 3 question. If you can answer even one question, please post it. Thank you.

1. When an error appears in [https://status.openai.com/](https://status.openai.com/), does the code value return 500?  
Can I use the conditional statement status==500 in existing code?

2. 

[https://api.openai.com/](https://api.openai.com/)  
Is it possible to health check through this site?  
Is currently  
{“message”: “Welcome to the OpenAI API! Documentation is available at [https://platform.openai.com/docs/api-reference](https://platform.openai.com/docs/api-reference)”}  
Is it possible to use a conditional statement to return a result like this when the value is not this value?

1. streaming  
Does it return the same error code when streaming?

---

<div class="post-metadata">

**Author:** ![PaulBellow](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/paulbellow/32/597962_2.png) [@PaulBellow](https://community.openai.com/u/PaulBellow)\
**Post date:** [March 25, 2024, 6:21am UTC](https://community.openai.com/t/error-code-500-and-health-check/696299/2 "2024-03-25T06:21:01Z")

</div>

You can find all the error codes in the [docs](https://platform.openai.com/docs/guides/error-codes)…

[# Error codes](https://platform.openai.com/docs/guides/error-codes/error-codes)

This guide includes an overview on error codes you might see from both the [API](https://platform.openai.com/docs/introduction) and our [official Python library](https://platform.openai.com/docs/libraries/python-library). Each error code mentioned in the overview has a dedicated section with further guidance.

[## API errors](https://platform.openai.com/docs/guides/error-codes/api-errors)

| Code | Overview |
| --- | --- |
| 401 - Invalid Authentication | **Cause:** Invalid Authentication |
| **Solution:** Ensure the correct [API key](https://platform.openai.com/account/api-keys) and requesting organization are being used. | |
| 401 - Incorrect API key provided | **Cause:** The requesting API key is not correct. |
| **Solution:** Ensure the API key used is correct, clear your browser cache, or [generate a new one](https://platform.openai.com/account/api-keys). | |
| 401 - You must be a member of an organization to use the API | **Cause:** Your account is not part of an organization. |
| **Solution:** Contact us to get added to a new organization or ask your organization manager to [invite you to an organization](https://platform.openai.com/account/team). | |
| 429 - Rate limit reached for requests | **Cause:** You are sending requests too quickly. |
| **Solution:** Pace your requests. Read the [Rate limit guide](https://platform.openai.com/docs/guides/rate-limits). | |
| 429 - You exceeded your current quota, please check your plan and billing details | **Cause:** You have run out of credits or hit your maximum monthly spend. |
| **Solution:** [Buy more credits](https://platform.openai.com/account/billing) or learn how to [increase your limits](https://platform.openai.com/account/limits). | |
| 500 - The server had an error while processing your request | **Cause:** Issue on our servers. |
| **Solution:** Retry your request after a brief wait and contact us if the issue persists. Check the [status page](https://status.openai.com/). | |
| 503 - The engine is currently overloaded, please try again later | **Cause:** Our servers are experiencing high traffic. |
| **Solution:** Please retry your requests after a brief wait. | |
