How can we improve campusM?

Pass errors directly back from connect layer

Currently, if the connect layer encounters an error while retrieving data, it passes back an HTML file with an HTTP 200 status code, as in the example below. It would be helpful if instead it would pass the error back to the client directly, with error messages and HTTP error status codes, as a normal web server would.

<!DOCTYPE html>
<html>
<head><meta http-equiv="content-type" content="text/html;charset=utf-8"></head>
<body data-location="/aek/c/dining-menu">
<div class="ombl---ajax-container">
<h2>Oops! Something has gone wrong</h2>
<p class="error last-child">Could not resolve host: api.dineoncampus.com.wrong</p>

</div>
</body>
</html>

1 vote
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    Angus Grieve-Smith shared this idea  ·   ·  Admin →

    0 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      Signed in as (Sign out)
      Submitting...

      Feedback and Knowledge Base