Changed the result code check to being 200 only
fixed an issue where success message was not colored due to setting the type to null