Redirect to error page when resource is not found