Drupal is a registered trademark of Dries Buytaert
Release: Entity API 8.x-1.8 Minor update available for module entity (8.x-1.8). Release: Module Filter 6.0.0 Major update available for module module_filter (6.0.0). Release: Blazy 3.0.19 Minor update available for module blazy (3.0.19). Release: Slick Carousel 3.0.8 Minor update available for module slick (3.0.8). Release: Blazy 3.0.18 Minor update available for module blazy (3.0.18). Release: File Hash 4.0.0 Major update available for module filehash (4.0.0). Release: Save & Edit 2.2.1 Minor update available for module save_edit (2.2.1). Release: FlowDrop 2.4.1 Minor update available for module flowdrop (2.4.1). Module Revived: Content Moderation Notifications 8.x-3.9 Module content_moderation_notifications updated after 10 months of inactivity (8... Usage Milestone: Account field split Module account_field_split crossed 10,000 active installs.

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.

Activity

Tracked releases
2
Tracked since
Jul 2026
Latest release
1 month ago
Releases (12 mo)
2 ▲ from 0
Maintenance
Active

Releases

Version Type Release date
1.1.1 Stable Jul 14, 2026
1.1.0 Stable Jul 13, 2026