Add test for duplicate domain creation case, change error response to apply for all non-HTML types