{"record":{"id":"fa112ec68e1477ff","repo":"nginx/nginx","slug":"ngx-stream-bad-request","errorCode":"NGX_STREAM_BAD_REQUEST","errorMessage":"NGX_STREAM_BAD_REQUEST","messagePattern":"NGX_STREAM_BAD_REQUEST","errorType":"error_code","errorClass":null,"httpStatus":400,"severity":"error","filePath":"src/stream/ngx_stream.h","lineNumber":30,"sourceCode":"#include <ngx_config.h>\n#include <ngx_core.h>\n\n#if (NGX_STREAM_SSL)\n#include <ngx_stream_ssl_module.h>\n#endif\n\n\ntypedef struct ngx_stream_session_s  ngx_stream_session_t;\n\n\n#include <ngx_stream_variables.h>\n#include <ngx_stream_script.h>\n#include <ngx_stream_upstream.h>\n#include <ngx_stream_upstream_round_robin.h>\n\n\n#define NGX_STREAM_OK                        200\n#define NGX_STREAM_BAD_REQUEST               400\n#define NGX_STREAM_FORBIDDEN                 403\n#define NGX_STREAM_INTERNAL_SERVER_ERROR     500\n#define NGX_STREAM_BAD_GATEWAY               502\n#define NGX_STREAM_SERVICE_UNAVAILABLE       503\n\n\ntypedef struct {\n    void                         **main_conf;\n    void                         **srv_conf;\n} ngx_stream_conf_ctx_t;\n\n\ntypedef struct {\n    struct sockaddr               *sockaddr;\n    socklen_t                      socklen;\n    ngx_str_t                      addr_text;\n\n    unsigned                       set:1;","sourceCodeStart":12,"sourceCodeEnd":48,"githubUrl":"https://github.com/nginx/nginx/blob/3f6f7824d4e2eb1ac37dec76683d525ac0ff521c/src/stream/ngx_stream.h#L12-L48","documentation":"Error \"NGX_STREAM_BAD_REQUEST\" thrown in nginx/nginx.","triggerScenarios":"Thrown at src/stream/ngx_stream.h:30 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"3f6f7824d4e2eb1ac37dec76683d525ac0ff521c","analyzedAt":"2026-08-22T03:09:46.447Z","schemaVersion":2},"datasetVersion":"2026-08-22T04:17:13.399Z"}