Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

HTTP Status Code Test

Security covered Maintenance fixes only 11 sites

This module provides a test endpoint that returns a specific HTTP status code based on a query parameter. It's useful for testing how other services, like CDNs, handle different status codes.

This module registers a test endpoint that returns the HTTP status code that is passed in the request as a query string parameter. For example,
https://example.com/http-status-code-test?code=503 will return a response with a 503 status code.

The HTTP Status Code Test module is helpful in situations where Drupal needs to return a specific status code for testing downstream services, such as Akamai or Cloudflare. For example, a CDN provider can be configured to intercept responses with certain status codes to serve a custom error page. With this module, a developer can test that custom error page by purposefully triggering it.

Configuration

This module provides two configuration options:

  • Enabled: Whether or not the endpoint is enabled
    • Default value: `false`
  • Endpoint Path: The path to register for the test endpoint
    • Default value: `/http-status-code-test`

The test endpoint should be disabled when not in active use.

Drupal 10–11

Ask your assistant about HTTP Status Code Test

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
5
Tracked since
May 2024
Latest release
2 months ago
Releases (12 mo)
2 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
1.1.1 Stable 10–11 Jul 14, 2026
1.1.0 Stable 10–11 Jul 13, 2026
1.0.0 Stable 10–11 Aug 26, 2024
1.0.0-rc1 Pre-release 10 May 22, 2024
1.x-dev Dev 10–11 May 22, 2024