some error handling for curl request to statsbiblioteket