Cleanup
Get endpoint from listener
Rename path_matches to path_
Rename path_matches to path_
Return error_code