Fixes formatting problem in endpoints/errors