{
    "url": "https://delaparra-services.nl/knowledge-hub/502-bad-gateway",
    "locale": "en",
    "title": "502 Bad Gateway: Knowledge hub | DeLaParra Services",
    "description": "The server was acting as a gateway and received an invalid response from upstream.",
    "alternates": {
        "en": "https://delaparra-services.nl/knowledge-hub/502-bad-gateway",
        "nl": "https://delaparra-services.nl/nl/kennisbank/502-bad-gateway"
    },
    "formats": {
        "csv": "https://delaparra-services.nl/knowledge-hub/502-bad-gateway.csv",
        "md": "https://delaparra-services.nl/knowledge-hub/502-bad-gateway.md",
        "json": "https://delaparra-services.nl/knowledge-hub/502-bad-gateway.json",
        "zip": "https://delaparra-services.nl/knowledge-hub/502-bad-gateway.zip",
        "pdf": "https://delaparra-services.nl/knowledge-hub/502-bad-gateway.pdf"
    },
    "downloads": [
        {
            "url": "https://delaparra-services.nl/knowledge-hub/502-bad-gateway.csv",
            "encodingFormat": "text/csv",
            "name": "502-bad-gateway.csv"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/502-bad-gateway.json",
            "encodingFormat": "application/json",
            "name": "502-bad-gateway.json"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/502-bad-gateway.md",
            "encodingFormat": "text/markdown",
            "name": "502-bad-gateway.md"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/502-bad-gateway.pdf",
            "encodingFormat": "application/pdf",
            "name": "502-bad-gateway.pdf"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/502-bad-gateway.zip",
            "encodingFormat": "application/zip",
            "name": "502-bad-gateway.zip"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/502-bad-gateway/skills.zip",
            "encodingFormat": "application/zip",
            "name": "502-bad-gateway-skills.zip"
        }
    ],
    "markdown": "1. [Home](<https://delaparra-services.nl/>) \n1. [Knowledge hub](<https://delaparra-services.nl/knowledge-hub>) \n1. [502 Bad Gateway](<https://delaparra-services.nl/knowledge-hub/502-bad-gateway>)\n\n  \n\nCategory: HTTP status codes \n\n# 502 Bad Gateway\n\n  Explained by [Reinier de la Parra](<https://delaparra-services.nl/about>)  Updated November 25, 2026    \n\n## What is 502 Bad Gateway?\n\n \n\n502 Bad Gateway: The server was acting as a gateway and received an invalid response from upstream. 502 Bad Gateway means a server that sits in front of your application, such as a load balancer, reverse proxy or CDN, received an invalid response from the application behind it. In practice it usually means the application process crashed, was restarting, or is not listening where the proxy expects. During a deploy you may see a short burst of 502s while old processes stop and new ones start.\n\n \n\nDefinition source [Coders Lingo](<https://coderslingo.com/resources/open-dataset/>), [CC BY 4.0](<https://creativecommons.org/licenses/by/4.0/>)\n\n \n\n## Frequently asked questions about 502 Bad Gateway\n\n  \n\n### What should you keep in mind with 502 Bad Gateway?\n\n \n\nTo debug it, look one step further back. The proxy's own logs tell you which upstream failed, and the application or container logs tell you why. Common causes are a crashed PHP-FPM or Node process, a container that fails its start command, or a wrong port in the proxy configuration. Zero-downtime deploys and health checks prevent most of the deploy-time 502s.\n\n \n\n## At a glance\n\n   CategoryHTTP status codes Explained by[Reinier de la Parra](<https://delaparra-services.nl/about>) UpdatedNovember 25, 2026\n\n \n\n## More HTTP status codes terms\n\n \n\n- [409 Conflict](<https://delaparra-services.nl/knowledge-hub/409-conflict>) \n- [422 Unprocessable Entity](<https://delaparra-services.nl/knowledge-hub/422-unprocessable-entity>) \n- [429 Too Many Requests](<https://delaparra-services.nl/knowledge-hub/429-too-many-requests>) \n- [500 Internal Server Error](<https://delaparra-services.nl/knowledge-hub/500-internal-server-error>) \n- [503 Service Unavailable](<https://delaparra-services.nl/knowledge-hub/503-service-unavailable>) \n- [504 Gateway Timeout](<https://delaparra-services.nl/knowledge-hub/504-gateway-timeout>)\n\n \n\n[All terms starting with a number or symbol](<https://delaparra-services.nl/knowledge-hub#letter-other>)\n\n \n\n## Skills\n\n \n\n- ### HTTP status debugging\n\n \n\nUse when an HTTP request returns an unexpected status code (4xx or 5xx, or a redirect loop), when a user pastes an error like \"419 Page Expired\", \"422 Unprocessable Content\", \"502 Bad Gateway\" or \"CORS error\", or when debugging API calls between a frontend and a Laravel/PHP or Node backend. Finds the cause from the status code, headers and logs before changing code.\n\n [View skill](<https://delaparra-services.nl/skills/http-status-debugging>) [Download zip](<https://delaparra-services.nl/skills/http-status-debugging/download>) \n- ### Systematic Debugging\n\n \n\nUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes\n\n [View skill](<https://delaparra-services.nl/skills/systematic-debugging>) [Download zip](<https://delaparra-services.nl/skills/systematic-debugging/download>) \n- ### Sentry PHP SDK\n\n \n\nFull Sentry SDK setup for PHP. Use when asked to \"add Sentry to PHP\", \"install sentry/sentry\", \"setup Sentry in PHP\", or configure error monitoring, tracing, profiling, logging, metrics, crons, or AI monitoring for PHP applications. Supports plain PHP, Laravel, and Symfony.\n\n [View skill](<https://delaparra-services.nl/skills/sentry-php-sdk>) [Download zip](<https://delaparra-services.nl/skills/sentry-php-sdk/download>)\n\n [Download all skills (zip)](<https://delaparra-services.nl/knowledge-hub/502-bad-gateway/skills.zip>)\n\n \n\n## Manuals\n\n \n\n- [Reading HTTP status codes and debugging API errors](<https://delaparra-services.nl/manuals/http-statuscodes-en-api-fouten>) \n- [Deploying a Laravel app](<https://delaparra-services.nl/manuals/je-laravel-app-online-zetten>)\n\n \n\n## Related services\n\n \n\n- [Custom software and web applications](<https://delaparra-services.nl/services#service-03>)\n\nPerhaps your customers need somewhere to download their invoices, or your staff are managing bookings in a spreadsheet. \n- [AI code review](<https://delaparra-services.nl/services#service-05>)\n\nWhen you push your new change, I will review your code, help your agent avoid the same mistake again, and get your app ready for deployment.\n\n \n\n## Need any help?\n\n \n\nStuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.\n\n  [Get in touch](<https://delaparra-services.nl/availability>)\n\n[HTML version](https://delaparra-services.nl/knowledge-hub/502-bad-gateway)\n",
    "structured_data": {
        "@context": "https://schema.org",
        "@graph": [
            {
                "@type": "Organization",
                "@id": "https://delaparra-services.nl/#practice",
                "logo": "https://delaparra-services.nl/logo.png",
                "name": "DeLaParra Services",
                "legalName": "DeLaParra Services",
                "url": "https://delaparra-services.nl/",
                "description": "Bespoke software, web applications and mobile apps, developed in Laravel by a single developer in Groningen. Fixed price agreed in advance, full source code provided upon delivery.",
                "email": "info@delaparra-services.nl",
                "address": {
                    "@type": "PostalAddress",
                    "addressLocality": "Groningen",
                    "addressRegion": "Groningen",
                    "addressCountry": "NL"
                },
                "areaServed": "Groningen, the Netherlands",
                "knowsLanguage": [
                    "en",
                    "nl"
                ],
                "knowsAbout": [
                    "Web design and development",
                    "App development",
                    "Custom software and web applications",
                    "OpenSpec",
                    "AI code review",
                    "Your own coding agent"
                ],
                "founder": {
                    "@id": "https://delaparra-services.nl/#person"
                }
            },
            {
                "@type": "FAQPage",
                "@id": "https://delaparra-services.nl/knowledge-hub/502-bad-gateway#webpage",
                "url": "https://delaparra-services.nl/knowledge-hub/502-bad-gateway",
                "name": "502 Bad Gateway: Knowledge hub | DeLaParra Services",
                "description": "The server was acting as a gateway and received an invalid response from upstream.",
                "isPartOf": {
                    "@id": "https://delaparra-services.nl/#website"
                },
                "about": {
                    "@type": "DefinedTerm",
                    "@id": "https://delaparra-services.nl/knowledge-hub/502-bad-gateway#term",
                    "name": "502 Bad Gateway",
                    "description": "The server was acting as a gateway and received an invalid response from upstream.",
                    "termCode": "502-bad-gateway",
                    "url": "https://delaparra-services.nl/knowledge-hub/502-bad-gateway",
                    "inLanguage": "en",
                    "keywords": "HTTP status codes",
                    "dateModified": "2026-11-25T17:46:24+00:00",
                    "inDefinedTermSet": {
                        "@id": "https://delaparra-services.nl/knowledge-hub#terms"
                    },
                    "isPartOf": {
                        "@id": "https://delaparra-services.nl/knowledge-hub#dataset"
                    },
                    "subjectOf": [
                        {
                            "@id": "https://delaparra-services.nl/knowledge-hub/502-bad-gateway#webpage"
                        },
                        {
                            "@id": "https://delaparra-services.nl/knowledge-hub/502-bad-gateway#dataset"
                        }
                    ]
                },
                "inLanguage": "en",
                "breadcrumb": {
                    "@id": "https://delaparra-services.nl/knowledge-hub/502-bad-gateway#breadcrumb"
                },
                "mainEntity": [
                    {
                        "@type": "Question",
                        "name": "What is 502 Bad Gateway?",
                        "acceptedAnswer": {
                            "@type": "Answer",
                            "text": "The server was acting as a gateway and received an invalid response from upstream. 502 Bad Gateway means a server that sits in front of your application, such as a load balancer, reverse proxy or CDN, received an invalid response from the application behind it. In practice it usually means the application process crashed, was restarting, or is not listening where the proxy expects. During a deploy you may see a short burst of 502s while old processes stop and new ones start."
                        }
                    },
                    {
                        "@type": "Question",
                        "name": "What should you keep in mind with 502 Bad Gateway?",
                        "acceptedAnswer": {
                            "@type": "Answer",
                            "text": "To debug it, look one step further back. The proxy's own logs tell you which upstream failed, and the application or container logs tell you why. Common causes are a crashed PHP-FPM or Node process, a container that fails its start command, or a wrong port in the proxy configuration. Zero-downtime deploys and health checks prevent most of the deploy-time 502s."
                        }
                    }
                ],
                "author": {
                    "@id": "https://delaparra-services.nl/#person"
                },
                "mentions": [
                    {
                        "@id": "https://delaparra-services.nl/skills/http-status-debugging#skill"
                    },
                    {
                        "@id": "https://delaparra-services.nl/skills/systematic-debugging#skill"
                    },
                    {
                        "@id": "https://delaparra-services.nl/skills/sentry-php-sdk#skill"
                    },
                    {
                        "@id": "https://delaparra-services.nl/manuals/http-statuscodes-en-api-fouten#article"
                    },
                    {
                        "@id": "https://delaparra-services.nl/manuals/je-laravel-app-online-zetten#article"
                    }
                ]
            },
            {
                "@type": "BreadcrumbList",
                "@id": "https://delaparra-services.nl/knowledge-hub/502-bad-gateway#breadcrumb",
                "itemListElement": [
                    {
                        "@type": "ListItem",
                        "position": 1,
                        "name": "Home",
                        "item": "https://delaparra-services.nl/"
                    },
                    {
                        "@type": "ListItem",
                        "position": 2,
                        "name": "Knowledge hub",
                        "item": "https://delaparra-services.nl/knowledge-hub"
                    },
                    {
                        "@type": "ListItem",
                        "position": 3,
                        "name": "502 Bad Gateway"
                    }
                ]
            },
            {
                "@type": "Person",
                "@id": "https://delaparra-services.nl/#person",
                "name": "Reinier de la Parra",
                "url": "https://delaparra-services.nl/about"
            },
            {
                "@type": "Dataset",
                "@id": "https://delaparra-services.nl/knowledge-hub/502-bad-gateway#dataset",
                "name": "502 Bad Gateway",
                "description": "The server was acting as a gateway and received an invalid response from upstream.",
                "url": "https://delaparra-services.nl/knowledge-hub/502-bad-gateway",
                "identifier": "https://delaparra-services.nl/knowledge-hub/502-bad-gateway#dataset",
                "about": {
                    "@id": "https://delaparra-services.nl/knowledge-hub/502-bad-gateway#term"
                },
                "creator": {
                    "@id": "https://delaparra-services.nl/#practice"
                },
                "publisher": {
                    "@id": "https://delaparra-services.nl/#practice"
                },
                "license": "https://creativecommons.org/licenses/by/4.0/",
                "creditText": "Coders Lingo (https://coderslingo.com/resources/open-dataset/), CC BY 4.0",
                "isAccessibleForFree": true,
                "inLanguage": "en",
                "keywords": "HTTP status codes",
                "version": "2026-11-25",
                "dateModified": "2026-11-25T17:46:24+00:00",
                "isPartOf": {
                    "@type": "Dataset",
                    "@id": "https://delaparra-services.nl/knowledge-hub#dataset",
                    "name": "IT terms from A to Z",
                    "url": "https://delaparra-services.nl/knowledge-hub"
                },
                "includedInDataCatalog": {
                    "@type": "DataCatalog",
                    "@id": "https://delaparra-services.nl/knowledge-hub#catalog",
                    "name": "Knowledge hub data catalog",
                    "url": "https://delaparra-services.nl/knowledge-hub"
                },
                "distribution": [
                    {
                        "@type": "DataDownload",
                        "name": "502-bad-gateway.csv",
                        "encodingFormat": "text/csv",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/502-bad-gateway.csv",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:24+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "502-bad-gateway.json",
                        "encodingFormat": "application/json",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/502-bad-gateway.json",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:24+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "502-bad-gateway.md",
                        "encodingFormat": "text/markdown",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/502-bad-gateway.md",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:24+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "502-bad-gateway.pdf",
                        "encodingFormat": "application/pdf",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/502-bad-gateway.pdf",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:24+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "502-bad-gateway.zip",
                        "encodingFormat": "application/zip",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/502-bad-gateway.zip",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:24+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "502-bad-gateway-skills.zip",
                        "encodingFormat": "application/zip",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/502-bad-gateway/skills.zip",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:24+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    }
                ]
            }
        ]
    }
}