

# HTTP 500 状态代码（内部服务器错误）
<a name="http-500-internal-server-error"></a>

HTTP 500 状态代码（内部服务器错误）表示服务器遇到了意外情况，导致其无法完成请求。以下是 Amazon CloudFront 中出现 500 错误的一些常见原因。

**Topics**
+ [原始服务器向 CloudFront 返回 500 错误](#origin-server-500-error)

## 原始服务器向 CloudFront 返回 500 错误
<a name="origin-server-500-error"></a>

原始服务器可能向 CloudFront 返回 500 错误。有关更多信息，请参阅以下故障排除主题：
+ **如果 Amazon S3 返回 500 错误**，请参阅[如何解决来自 Amazon S3 的 HTTP 500 或 503 错误？](https://repost.aws/knowledge-center/http-5xx-errors-s3)
+ **如果 API Gateway 返回 500 错误**，请参阅[如何解决 API Gateway REST API 的 5xx 错误？](https://repost.aws/knowledge-center/api-gateway-5xx-error)
+ **如果弹性负载均衡返回 500 错误**，请参阅《应用程序负载均衡器用户指南》**中的 [HTTP 500: Internal server error](https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-troubleshooting.html#http-500-issues)。

如果上面的列表无法解决 500 错误，则问题可能与 CloudFront 接入点返回内部服务器错误有关。可以联系 [支持](https://console.aws.amazon.com/support/home#/) 获取帮助。