Prevent 404 on bad url params for json api