add 404 and 5xx errors