DDF-673 added error response for codes >= 400 to display correct browser error screen