When try to return the JSON response with status code "400 Bad Request", perl cgi always responding with text/html where as for 200, its returning JSON data correctly.
Using apache server.
When try to return the JSON response with status code "400 Bad Request", perl cgi always responding with text/html where as for 200, its returning JSON data correctly.
Using apache server.
It got worked after use Apache2::RequestUtil->request->rflush;
Thanks for the How to suppress the default mod_perl error page in legacy CGI script using ModPerl::Registry