class PagesController < ApplicationController
  skip_load_and_authorize_resource
  before_action :suppress_hotline_link

  def tandcs; end

  def contact_us; end

  def api_landing; end

  def api_release_notes; end

  def servicedown; end

  def timed_retention; end
end

class PagesController < ApplicationController
  skip_load_and_authorize_resource
  before_action :suppress_hotline_link

  def tandcs; end

  def contact_us; end

  def api_landing; end

  def api_release_notes; end

  def servicedown
    respond_to do |format|
      format.html { render :servicedown, status: 503 }
      format.json { render json: [{ error: 'Temporarily unavailable' }], status: 503 }
    end
  end

  def timed_retention; end
end

Add ability for servicedown to respond to json
Add ability for servicedown to respond to json

API queries should also respond in kind
and indicate that service is unavailable.
