BUG FIX unique error code for bad endpoints on server