Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-56036

Webservices errors should throw proper http code

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Won't Do
    • Icon: Minor Minor
    • None
    • 3.2
    • Web Services
    • None
    • MOODLE_32_STABLE

      Came up from MDL-55916 - we made the web interface return a 503 when a a site was in maintenance mode. We should do the same in webservices, in fact there are other places where it doesn't seem like we are making use of proper http response codes.

      The code around maintance mode exception even gives a clue:

      //this is usually temporary, client want to implement code logic  => moodle_exception
       throw new moodle_exception('sitemaintenance', 'admin');
      

            Unassigned Unassigned
            poltawski Dan Poltawski
            Votes:
            2 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.