Skip to main content
Answered

InvalidPluginExecutionException along with HttpErrorCode parameter keeps returning error code 400

editSubscribe (0) ShareShare
ReportReport
Posted on by

Please consider the below custom workflow piece of code 

class BaseCodeActivity : CodeActivity
{

    protected override void Execute(CodeActivityContext codeActivityContext) 
    {
        throw new InvalidPluginExecutionException("Expected http error code 503", PluginHttpStatusCode.ServiceUnavailable);
    }
}

I've expected to receive a HTTP 503 - Service Unavailable message but I keep getting 400. Not matter which error code I choose, I keep getting the same

Any help greatly is appreciated, Thanks!