Throw http not found exception instead of runtime

Avoids a 500 server error.