Add error messages on server-side use

#5