Add badGateway and badRequest endpoints