Reporting route parameter type mismatch as 404 error rather than 500 (closes #26).