Illegal argument exceptions are now caught and throw a 404 error.

Change-Id: I560400a6437a2109a276d23144c348e7b02d8ff3