Change response error dictionary to static variable and clean whitespace.