Added tests to verify that 401 and 403 status code responses from the server on pings will stop the connection.

- This involved creating a StatusCodeConnection that will change the response status code based on a query string variable AND will respond with a specified status code.

#2360