Your website may be returning a "502 Bad Gateway" or similar error to visitors. These types of HTTP status codes indicate an issue between the client (browser) and the server. When CDN (content delivery network) services like Medianova are used, this error is detailed as shown in the image: the browser and CDN are working, but the main server (host) is returning an error. In this article, we cover all HTTP error codes and their solutions in detail.
Meaning: The gateway or proxy server did not receive a valid response from the origin server.
The server may have crashed
The web server (Apache, Nginx) is not running
PHP-FPM, Node.js, MySQL services may have stopped
DNS configuration error
The firewall may be blocking CDN servers
The backend cannot respond due to excessive traffic
Restart your web server (Apache/Nginx)
Check PHP-FPM or related application services
Monitor whether there is enough RAM/CPU on the server
Make sure you have configured DNS records correctly
If you are using a CDN like Cloudflare/Medianova, remove IP blocks
Code | Description | Possible Reasons | Solution |
---|---|---|---|
400 | Bad Request | Invalid request | Check URL characters |
401 | Unauthorized | No authorization | API Token / Login information must be added |
403 | Forbidden | Access denied | IP/role block, directory permissions |
404 | Not Found | Page not found | Check URL, see if file exists |
405 | Method Not Allowed | Incorrect method such as POST instead of GET | API endpoint check |
408 | Request Timeout | Server did not respond within the expected time | Performance optimization |
429 | Too Many Requests | Too many requests sent | Rate limit is applied, wait |
500 | Internal Server Error | Unknown error on the server side | Check error logs (error.log) |
501 | Not Implemented | Server cannot handle the request | Update/compatibility issue |
502 | Bad Gateway | CDN or proxy cannot get a response from the backend server | Web server check |
503 | Service Unavailable | Server is under maintenance or overloaded | Check scheduler / Insufficient RAM |
504 | Gateway Timeout | CDN or proxy server timed out | PHP script may take too long |
curl -I https://yourwebsiteaddress.com
→ Check HTTP response
ping
, traceroute
→ Is there a network access problem?
journalctl -xe
(Linux) → Examine service logs
CDN logs (Medianova, Cloudflare) → Is there a response delay or blocking?
HTTP error codes are important diagnostic tools for system administrators and developers. The 502 Bad Gateway error usually indicates a temporary problem on the server side. In CDNs like Medianova, the cause of this error is clearly shown: the browser and CDN are working, but the main server is not responding. With the table and suggestions above, you can recognize other error codes and quickly produce solutions.
Web siteniz için uygun fiyatlı Ucuz Hosting Paketleri ile yüksek performanslı barındırma hizmeti sunuyoruz.
Dijital varlığınızı güçlendirmek için profesyonel Sosyal Medya Hesap Yönetimi hizmeti sağlıyoruz.
Görsellerinizi sıkıştırmak için kullanışlı PNG to WebP dönüştürücümüzü deneyin.
Resim boyutlarını küçültmek isteyenler için JPG to WebP aracı idealdir.
SEO uyumu için Robots.txt Oluşturucu aracımızı kullanabilirsiniz.
Htaccess Oluşturucu ile yönlendirme ve erişim ayarlarınızı kolayca yapın.
Kullanıcı deneyimini artırmak için özgün UI/UX Tasarım çözümleri sunuyoruz.
Hızlı ve güvenli kurulum için WordPress hizmetimizden faydalanın.
Sitenizi arama motorlarında yükseltmek için Google Optimizasyon hizmeti sunuyoruz.
Markanızı tanıtmak için Tanıtım Yazısı içerikleri üretiyoruz.
UGC ile içerik gücünüzü artırın: UGC İçerik.
Profesyonel Yazılım Kurulum hizmetleri sunuyoruz.
Kaliteli içerik arayanlara özel Hazır Makale & İçerik Satışları.
Sıra Bulucu ile arama motoru sıralamanızı takip edin.
Google Haritalara Kayıt ile konumunuzu haritada gösterin.
Alan adı otoritenizi öğrenin: DA PA Sorgula.
Dış bağlantılarınızı analiz edin: Dış Link Aracı.
Dahili link yapınızı inceleyin: İç Link Aracı.
Arama motoru başarınızı artırmak için SEO Danışmanlığı alın.
Organik trafiğinizi artırmak için SEO çözümleri geliştirin.
Özel çözümler için Mobil Uygulama geliştirme hizmeti sunuyoruz.
Markanız için Logo tasarlıyoruz.
İşinize özel Web Yazılım çözümleri sunuyoruz.
Kurumsal imajınızı yansıtan Kurumsal Web Tasarım hizmeti.
Süreçlerinizi hızlandırmak için Bot Program geliştiriyoruz.
Online satışlarınız için Sanal POS sistemleri sunuyoruz.
Entegrasyonlar için Pazaryeri ve Kargo Entegrasyonu.
Kullanıcı deneyimi testleri için Son Kullanıcı Testleri.
İçerik indirimi için TikTok Video İndir aracı.
Görsellerinizi kolayca küçültün: Resim Boyutlandırma.
Yararlı kod örnekleri için Site Kodları rehberine göz atın.
Kodları online inceleyin: HTML Viewer.
IP adresinizi öğrenmek için IP Adresim Nedir aracını kullanın.
Bağlantı hızınızı test etmek için Hız Testi.
DNS önbellek sorunları için DNS Cache Problemi sayfasını inceleyin.
DNS değişikliklerini görmek için DNS Önizleme aracı.
IDN dönüştürme için IDN Çevirme kullanın.
Sunuculara ping atmak için Ping Gönder özelliğini deneyin.
Web sitenizin yanıt süresini test etmek için Web Site Ping aracımızı kullanın.