Updated the code to simply accept 405 as a success rather than fight
to get a connection.