Check and simplify HTTP error code handling (Step 1/3)
Check and simplify HTTP error code handling (Step 2/3)
get_response_code_text for Lua

The new function get_response_code_text should be available for Lua as well.
Add it to the Lua environment and add a test.