def not_found
    if env["REQUEST_PATH"] =~ /^\/api/
      render json: {error: 'not-found'}.to_json, status: 404
    else
      render json: {error: "What you are looking for is not found."}.to_json, status: 404