api page queries appropriat e resources. Shows code on success, shows 404 if there is no such resource.