server returns 400 for duplicate key error
accept url with slash or no slash