Made cors error messages more accurate