Skip to content

/health endpoint return 200 status even if the call fails #1936

@baszoetekouw

Description

@baszoetekouw

For example:

> curl -v http://172.18.0.15:80/health
*   Trying 172.18.0.15:80...
* Connected to 172.18.0.15 (172.18.0.15) port 80 (#0)
> GET /health HTTP/1.1
> Host: 172.18.0.15
> User-Agent: curl/7.88.1
> Accept: */*
>
< HTTP/1.1 200 OK
< Date: Thu, 12 Mar 2026 11:34:31 GMT
< Server: Apache
< X-Content-Type-Options: nosniff
< Vary: Accept-Encoding
< Content-Length: 251
< Content-Type: text/html; charset=UTF-8
<
<br />
<b>Fatal error</b>:  Uncaught RuntimeException: APP_SECRET must be at least 32 characters long in production. in /var/www/html/public/index.php:17
Stack trace:
#0 {main}
  thrown in <b>/var/www/html/public/index.php</b> on line <b>17</b><br />
* Connection #0 to host 172.18.0.15 left intact

Instead, return http status 500 on error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Status

    Backlog

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions