// FailedURI writes a '400 URI Failure' message.
//
// The message parameter should be "" unless the intent is to send a malformed
// URI Failure message
// failReason is only used if transientError is false
FailedURI writes a '400 URI Failure' message.

The message parameter should be "" unless the intent is to send a malformed
URI Failure message
failReason is only used if transientError is false
// FailedURI writes a ' 400 URI Failure ' message . // // The message parameter should be " " unless the intent is to send a malformed // URI Failure message // failReason is only used if transientError is false
func (mw *MessageWriter) FailedURI(uri, message, failReason string, transientError, usedMirror bool) {
	mw.w.Write([]byte("400 URI Failure\n"))
	if uri == "" {
		fmt.Fprintf(mw.w, "Message: %s\n\n", message)
		return
	}
	fmt.Fprintf(mw.w, "URI: %s\n", uri)
	if transientError {
		mw.w.Write([]byte("Transient-Failure: true\n"))
	} else {
		fmt.Fprintf(mw.w, "FailReason: %s\n", failReason)
	}
	if usedMirror {
		mw.w.Write([]byte("UsedMirror: true\n"))
	}
	mw.w.Write([]byte("\n"))
}
func ( mw * MessageWriter ) FailedURI ( uri , message , failReason string , transientError , usedMirror bool ) { mw . w . Write ( [ ] byte ( " \n " ) ) if uri == " " { fmt . Fprintf ( mw . w , " \n \n " , message ) return } fmt . Fprintf ( mw . w , " \n " , uri ) if transientError { mw . w . Write ( [ ] byte ( " \n " ) ) } else { fmt . Fprintf ( mw . w , " \n " , failReason ) } if usedMirror { mw . w . Write ( [ ] byte ( " \n " ) ) } mw . w . Write ( [ ] byte ( " \n " ) ) }
FailedURI writes a '400 URI Failure' message.
FailedURI writes a ' 400 URI Failure ' message .