X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=near-rt-ric-simulator%2Fsrc%2F1.1.x-alpha.2%2Fa1.py;fp=near-rt-ric-simulator%2Fscripts%2Fa1.py;h=567047ec1d1fca06e69ca3a9089d5e4aa31c9582;hb=21be2e0c890fb9604d0add2942fcff19b6fe2fb2;hp=006d04d06728a5efee25babd928490d4c735b227;hpb=f27a4460b38b62e665f3e9ee936f439270eded32;p=sim%2Fa1-interface.git diff --git a/near-rt-ric-simulator/scripts/a1.py b/near-rt-ric-simulator/src/1.1.x-alpha.2/a1.py similarity index 97% rename from near-rt-ric-simulator/scripts/a1.py rename to near-rt-ric-simulator/src/1.1.x-alpha.2/a1.py index 006d04d..567047e 100644 --- a/near-rt-ric-simulator/scripts/a1.py +++ b/near-rt-ric-simulator/src/1.1.x-alpha.2/a1.py @@ -1,4 +1,3 @@ -#!/usr/bin/python3 # ============LICENSE_START=============================================== # Copyright (C) 2020 Nordix Foundation. All rights reserved. # ======================================================================== @@ -20,7 +19,6 @@ import copy import datetime import json import logging -#import requests from connexion import NoContent from flask import Flask, escape, request, make_response @@ -183,6 +181,6 @@ def send_error_code(args): elif code == '503': return(set_error(None, "Service unavailable", 503, "The provider is currently unable to handle the request due to a temporary overload", None, None, None, None)) else: - return(set_error(None, "Not found", 400, "No resource found at the URI", None, None, None, None)) + return(set_error(None, "Not found", 400, "Object in payload not properly formulated or not related to the method", None, None, None, None)) else: - return(set_error(None, "Not found", 400, "No resource found at the URI", None, None, None, None)) + return(set_error(None, "Not found", 404, "No resource found at the URI", None, None, None, None))