public static HttpFailure sendErrorResponse ( int code , String body ) { return new HttpFailure ( new MockResponse ( ) . setResponseCode ( code ) . setBody ( body ) ) ; }
Ex code 400 when the server cannot read the spans