Alter FreePBX core to send appropriate unauthorized status code

I think I may have this issue sorted. In /admin/libraries/gui_auth.php, I’ve added:

header('HTTP/1.0 401 Unauthorized');

under every instance of:

$no_auth = true;

This seems to be working the way I need it to so far.