Extract error endpoints into separate app