I am developing a RESTful service and I want to return 400 for all unsupported URLs.
My question is when should I choose method 1 over method 2 and vice-vers
The second seems better as it doesn't involve exception throwing which comes at a micro-cost compared to the first example.