Throw an exception when no matching route was found
Added minimal output
Added 404 to exception
Fixed sendStatusCode
Refactored