Skip to content

Custom Block Status Code#33

Open
rswalkden wants to merge 9 commits into
masterfrom
custom-block-status-code
Open

Custom Block Status Code#33
rswalkden wants to merge 9 commits into
masterfrom
custom-block-status-code

Conversation

@rswalkden

@rswalkden rswalkden commented Jun 26, 2026

Copy link
Copy Markdown
Contributor
  • Allows a custom block status code to be applied, controlled by the NETACEA_BLOCKED_RESPONSE_STATUS environment variable
  • Optionally, a custom body may be set too, using NETACEA_BLOCKED_RESPONSE_BODY. When a custom body is set it is advisable to also explicitly set the content type using NETACEA_BLOCKED_RESPONSE_CONTENT_TYPE.
  • Included in the PR are two bug fixes:
    • Read large captcha bodies that have been spilled to disk. Previously large bodies would fail to send.
    • Set the correct bc_type for the captcha-on-demand path. This was a minor logging issue, but the fix makes it clearer in our logs what action has been applied.

@rswalkden rswalkden marked this pull request as ready for review June 29, 2026 08:41
@rswalkden rswalkden requested a review from a team as a code owner June 29, 2026 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants