The only suggestion in this patch is to make errors as constants. Maybe, we can create a library or a file that we can import the errors!