Don't catch SystemExit in catch-all exceptions.

exit_error raises SystemExit. This was causing the exception handler for
exit_error(400) to print another "Status: 500" in the response body.
Use FRONT_DOMAIN constant.