/// <summary>
        ///     Sets the error to "Not Found" (404)
        ///     <para>
        ///         The origin server did not find a current representation for the target resource or is not willing to disclose
        ///         that one exists.
        ///     </para>
        /// </summary>
        /// <param name="response"> The <see cref="HandlerResponse" />. </param>
        /// <param name="description">The description.</param>
        /// <returns>CommonResponse.</returns>
        public static HandlerResponse SetErrorTo404NotFound(
            this HandlerResponse response,
            string description = null
            )
        {
            response.Error = new RequestErrorObject().SetErrorTo404NotFound(description);

            return(response);
        }
        /// <summary>
        ///     Sets the error to "Data Conflict" (409)
        ///     <para>
        ///         The request could not be completed due to a conflict with the current state of the target resource as upsert
        ///         semantics are not supported.
        ///     </para>
        /// </summary>
        /// <param name="response"> The <see cref="RequestErrorObject" />. </param>
        /// <param name="description">The description.</param>
        /// <returns>CommonResponse.</returns>
        public static HandlerResponse SetErrorTo409DataConflictUpserts(
            this HandlerResponse response,
            string description = null
            )
        {
            response.Error = new RequestErrorObject().SetErrorTo409DataConflictUpserts(description);

            return(response);
        }
        public static RequestErrorObject CreateError(this HandlerResponse response)
        {
            response.Error = new RequestErrorObject();

            return(response.Error);
        }