improve checking if code run in CLI mode
add errors handler
improve logger
refactor code
improve errors handling
improve headers handling
improve casters
refactor code
refactor code
add docblocks
refactor code
add functionality
add comments
refactor halt method
add getter for curl handler
fix error with request query parameters
add comment
update docblock
remove old method
unset fields