-#!/usr/bin/python3
# ============LICENSE_START===============================================
# Copyright (C) 2020 Nordix Foundation. All rights reserved.
# ========================================================================
import datetime
import json
import logging
-#import requests
from connexion import NoContent
from flask import Flask, escape, request, make_response
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))