cs-fixes
cs fixes / add type hint
return "internal server error"
use own getResponse method
fix comments
remove comment
change type hint
make serialize/deserialize protected