Drupal is a registered trademark of Dries Buytaert
drupal 11.4.2 Update released for Drupal core (11.4.2)! drupal 11.4.1 Update released for Drupal core (11.4.1)! drupal 11.4.0 Update released for Drupal core (11.4.0)! drupal 10.6.12 Update released for Drupal core (10.6.12)! drupal 11.3.13 Update released for Drupal core (11.3.13)! drupal 10.6.11 Update released for Drupal core (10.6.11)! drupal 11.3.12 Update released for Drupal core (11.3.12)! drupal 11.2.14 Update released for Drupal core (11.2.14)! drupal 10.5.12 Update released for Drupal core (10.5.12)! cms 2.1.3 Update released for Drupal core (2.1.3)! drupal 10.5.11 Update released for Drupal core (10.5.11)! drupal 11.3.11 Update released for Drupal core (11.3.11)! drupal 11.2.13 Update released for Drupal core (11.2.13)! drupal 10.6.10 Update released for Drupal core (10.6.10)! cms 2.1.2 Update released for Drupal core (2.1.2)! drupal 11.1.10 Update released for Drupal core (11.1.10)! drupal 10.5.10 Update released for Drupal core (10.5.10)! drupal 10.4.10 Update released for Drupal core (10.4.10)! drupal 11.2.12 Update released for Drupal core (11.2.12)! drupal 11.3.10 Update released for Drupal core (11.3.10)!

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.

Activity

Total releases
1
First release
Jul 2026
Latest release
3 hours ago
Release cadence
Stability
100% stable

Releases

Version Type Release date
1.1.0 Stable Jul 13, 2026