We are feeling bored and need a specific activity to pursue. Read the Bored API documentation complete the given function to fetch an activity with the key 5881028
from the database and log it to the console.
If the API call is successful, log the successMessage
to the console and if an error occurs during the fetch operation, log an error message in the format Error: <error-message> to the console at the error log level.
Check the HTTP response status code. If the response is not OK (e.g., 404 or 500), throw an error with the message Failed to fetch the activity. Regardless of the fetch call's success or failure, always log the completionMessage
to the console after the task is completed.